Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different Syntax/Command Usages for Player and Console #347

Open
Lloyd26 opened this issue Oct 7, 2021 · 0 comments
Open

Different Syntax/Command Usages for Player and Console #347

Lloyd26 opened this issue Oct 7, 2021 · 0 comments
Labels
core Related to the ACF Core question

Comments

@Lloyd26
Copy link

Lloyd26 commented Oct 7, 2021

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)

@chickeneer chickeneer added question core Related to the ACF Core labels Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Related to the ACF Core question
Projects
None yet
Development

No branches or pull requests

2 participants