-
Notifications
You must be signed in to change notification settings - Fork 1
Arguments
Rens Verstappen edited this page Jan 29, 2022
·
1 revision
Commands have support for interchangeable arguments. This means you can add a command that supports user input.
Example:
alias: /tpup %player-1% %height-2%
command: /tp %player-1% ~ ~%height-2% ~In this case, %player-1% gets replaced by the player, and %height-2% gets replaced by the height the player will go up by. You can change the name, as long as the order is the same. %xyz-1% must be the first thing which gets replaced in the main command. %abc-2% must be the second, etc.
alias: /ban %player-2% %reason-1%
command: /examplebanplugin:ban %reason-1% %player-2%Here %player-2% is the second thing in the main command, and %reason-1% is the first.