Different Syntax/Command Usages for Player and Console
Aperta
core
question
- Lingua principale
- Java
- Stelle
- 628
- Fork
- 150
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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]`
* Console: `/tp `
(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`)
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.