An argument is a command parameter. When you execute a command to open a menu, you can add various arguments that will influence the creation of your menu. This avoids creating multiple menus unnecessarily in some cases. A menu can be opened as follows: /parameter scoreboard. In this example, the argument is "scoreboard". The usefulness here is that one can use the word "scoreboard" as a placeholder when creating the menu. Indeed, a command argument is accessible through the placeholder %arg_{name}%. Here, if our argument were named "setting", then %arg_setting% would return the value "scoreboard".
To achieve this, simply create an argument with the following schema and the different types of arguments that exist.
Framework
#Argument namename:STRING#Specify if the argument is requiredrequired:BOOLEAN#Specific property depending on the type of argument...(Argument properties)#Message if the argument is not met or provided incorrectlymessage:STRING
Properties
Description: Insert an argument corresponding to the name of a player on the server.
#Specifies that the value of the argument must be a player.values:"PLAYERS"
Description: Insert an argument belonging to a predefined list of text/words.
#Specifies that the value of the argument must be contained in this listvalues: - STRING - ...
Description: Insert an argument that is a decimal number between a minimum and maximum value.
# Specifies that the value of the argument must be a decimal numbervalues:"DOUBLE"# Minimum valuemin:DOUBLE# Maximum valuemax:DOUBLE
Description: Insert an argument that is an integer between a minimum and maximum value.
# Specifies that the value of the argument must be a integer numbervalues:"INTEGER"# Minimum valuemin:INTEGER# Maximum valuemax:INTEGER