You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to have 2 syntax/command usages? If so, how?
I want to have different syntax for the Player command and the Console command.
For instance:
Player: /tp <player> [player]
Console: /tp <player> <target>
(Notice the 2nd argument in the Console command is required, while it is optional in the Player command)
(Also, I'm just using throw new InvalidCommandArgument(true); to show the syntax since without it, it will just show "Unknown Command, type /help" if I only typed /tp)
The text was updated successfully, but these errors were encountered:
Is it possible to have 2 syntax/command usages? If so, how?
I want to have different syntax for the Player command and the Console command.
For instance:
/tp <player> [player]
/tp <player> <target>
(Notice the 2nd argument in the Console command is required, while it is optional in the Player command)
(Also, I'm just using
throw new InvalidCommandArgument(true);
to show the syntax since without it, it will just show "Unknown Command, type /help" if I only typed/tp
)The text was updated successfully, but these errors were encountered: