Player Argument
This is a processor to handle the argument for Player Name
Format
menu-settings:
argument-processor: # Add the processor to the menu
<name>:
type: player
action:
- action
- action
- action
- action
invalid-action:
- action
- action
- action
online-only: <true/false>
Note
online-only
: whether to check if the player is online. Iftrue
, then only the online players are given to the suggestion listaction
: the Action to be called when the argument length is not enoughinvalid-action
: the Action to be called when the argument is invalid
Example
menu-settings:
command: confirmteleport
argument-processor:
player:
type: player
action: "tell: &cPlayer is required"
target:
type: player
action: "tell: &cTarget is required"
button:
slot: 0
id: ender_pearl
name: "&bTeleport"
command: "console: tp {arg_player} {arg_target}"