So I want to add text1

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

BedsDrout

Member
Jan 7, 2022
1
0
1
so it there somthing that you can add a text after the command
like /asd idkwhattoput
and later define it in the code?
If you have any questions to ask me just ask me.
 
you need to use arguments, like <text>, <int>(int is integer), <player>, etc.
putting [ ] around it makes the arg optional
# infront of any text makes it not registered by skript, or a comment
also you indent after every colon
Code:
command /yourcommand [<text>]:
  permission: your.permission #you need a permission manager to set permissions for everyone, but you can just use op
  trigger:
    if arg 1 is set: # the text after the command
      if arg 1 is "pp":
        send "pp" to player
 
Status
Not open for further replies.