πŸ‡ΊπŸ‡Έ
Majorum
Besoin d'aide ?
πŸ‡ΊπŸ‡Έ English
πŸ‡ΊπŸ‡Έ English
  • Welcome
  • Minecraft plugins
    • πŸ“‹TabulaUI
      • Installation
      • Commands & Permissions
      • Configuration
        • Menu forms
        • Argument
        • Condition
        • Action
    • πŸŒ‹VulcanusFight
      • Installation
      • Commands & Permissions
      • Configuration
Powered by GitBook
On this page
  • Framework
  • Properties

Was this helpful?

  1. Minecraft plugins
  2. TabulaUI
  3. Configuration

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
Expression
Description
Example

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"

Description: Insert an argument belonging to a predefined list of text/words.

#Specifies that the value of the argument must be contained in this list
values:
 - 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 number
values: "DOUBLE"

# Minimum value
min: DOUBLE

# Maximum value
max: 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 number
values: "INTEGER"

# Minimum value
min: INTEGER

# Maximum value
max: INTEGER
Expression
Description
Example

STRING

Set of characters

"Hello"

DOUBLE

Decimal number

18.2

INTEGER

Integer number

4

PreviousMenu formsNextCondition

Last updated 1 year ago

Was this helpful?

πŸ“‹