Argument

Arguments de TabulaUI

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 name
name: STRING
#Specify if the argument is required
required: BOOLEAN

#Specific property depending on the type of argument
...(Argument properties)

#Message if the argument is not met or provided incorrectly
message: STRING
ExpressionDescriptionExample

STRING

Set of characters

"Hello"

BOOLEAN

Valeur pouvant รชtre: true ou false

true

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"
ExpressionDescriptionExample

STRING

Set of characters

"Hello"

DOUBLE

Decimal number

18.2

INTEGER

Integer number

4

Last updated