Store Argument
This is a processor to store the arguments and provide them as Variables
Format
menu-settings:
argument-processor: # Add the processor to the menu
<name>:
type: store # Not needed as it's the default type
action:
- action
- action
- action
- action
invalid-action:
- action
- action
- action
length: <number>
take-remaining: <true/false>
suggest:
- string1
- string2
- string3
check-suggest: <true/false>
Note
length
: the required length of the argumenttake-remaining
: whether to take all remaining argumentssuggest
: the list of suggestions when the player uses tab-completioncheck-suggest
: whether to check the argument against thesuggest
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: testargs
argument-processor:
hello:
length: 2
suggest:
- Hello you
- Welcome back
action: "tell: &cHello is required"
message:
take-remaining: true
suggest:
- HSGamer
- Minecraft World
action: "tell: &cMessage is required"
button:
slot: 0
id: stone
name: "&bTest Arguments"
lore:
- "{arg_hello}, {arg_message}"