Solved Skript doesn't let me do anything with commands that someone has wrtitten incorrectly

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

SkriptLearner

Member
Jul 21, 2019
45
0
6
22
The title doesn't really make sense I know, so, let me try and explain...

Basically, this is probably normal but is there a way to change it.
For a command like:
Code:
command /kill <player>:
  trigger:
    message "hi"
if argument 1 (player) is not online or if someone has not typed it, skript will give an automated response "That player is not online" or "Correct usage: /kill <player>".

Basically I want to know if I can not have script do that. So I can set my own message when they type it wrong or whatever.

I've seen stuff like:
Code:
if arg 1 is not set:
but that doesn't work.

hope ive explained it well
 
2 ways you can do this
1) Skript commands have a "usage" parameter you can add
2) Make your argument optional, then things like `if arg-1 is not set` will work
 
2 ways you can do this
1) Skript commands have a "usage" parameter you can add
2) Make your argument optional, then things like `if arg-1 is not set` will work
Sounds good.
Sorry I'm not very experiencesd with arguments,how would I do this?
 
Status
Not open for further replies.