Command Arg

  • 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 comminuty!

    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.

Digszin

Member
Jan 26, 2017
28
0
1
32
How i can check the command argument, like?
code_language.skript:
on command "/g [<text>]":
    if text contains "blabla":
 
oh crap i misread it.... ok its done a different way,,, let me see if i can remember.
code_language.skript:
on command "/g [<text>]":
    if arguments contains "blabla":
i just ran this in console, no errors
 
oh crap i misread it.... ok its done a different way,,, let me see if i can remember.
code_language.skript:
on command "/g [<text>]":
    if arguments contains "blabla":
i just ran this in console, no errors

We use argument without s, arguments works
 
How i can check the command argument, like?
code_language.skript:
on command "/g [<text>]":
    if text contains "blabla":
I'm not sure if you are listening for a command that has already been registered by another script or plugin. However, if you are creating commands yourself, you should be registering commands using the correct syntax. I would not suggest listening for custom commands using the on command event and instead would suggest looking into https://forums.skunity.com/wiki/commands/.
 
Status
Not open for further replies.