Argument
Arguments de TabulaUI
Last updated
Arguments de TabulaUI
Last updated
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.
Expression | Description | Example |
---|
Description: Insert an argument corresponding to the name of a player on the server.
Expression | Description | Example |
---|
STRING | Set of characters | "Hello" |
DOUBLE | Decimal number | 18.2 |
INTEGER | Integer number | 4 |
STRING | Set of characters | "Hello" |
BOOLEAN | Valeur pouvant être: | true |