Ignore arguments

  • 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.

iVyperion

Member
Aug 13, 2017
25
0
0
i'm making a command like this:
(srry idk how to do the code skript thing)


command /arg <text> <text>:
trigger:
if arg 2 isn't set:
if arg 1 is "help":
broadcast "test"

but the thing is idk how to ignore the second argument this doesnt work it just gives me the correct usage: thing
i dont use addons btw
 
For the code, click the small plus sign between the video and save icon on the edit bar above where you type your message.
To make an argument optional put brackets around it like this
[<player>]
 
Status
Not open for further replies.