Condition

Conditions of TabulaUI

A condition is a prerequisite useful for various purposes, such as determining if the player can open the menu if they can see a particular button, or what action should be performed after selecting a button.

Framework

[TYPE] EXPRESSION

Types and Expressions

Vault Economy (only spigot)

Compare the player's balance to a value.

Complete expression: [money] (> | < | >= | <= | =) {value}

Examples:

  • [money] >= 10000

  • [money] = 5700

Level (only spigot)

Compare the player's XP level to a value.

Complete expression: [lvl] (> | < | >= | <= | =) {value}

Examples:

  • [lvl] >= 30

  • [lvl] = 10

Near to a position (only spigot)

Check if the player is close to a certain position.

Complete Expression: [near] (world:x:y:z) {value}

Examples:

  • [near] world:0:120:0 30

Permission

Check if the player has or does not have permission.

Complete expression: [(!)permission] {value}

Examples:

  • [permission] minecraft.gamemode.creative

  • [!permission] essentials.feed

Compare

Compare one value to another or a value and its characteristics.

Complete expression: [compare] {value_1} (not | !){type} {value_2}

Examples:

  • [compare] %player% ends with xX

  • [compare] %player% not in AziRixX,Lekilo_Maitre,Player017

  • [compare] %player% !is numeric

Javascript

Execute a JavaScript expression to retrieve a boolean value.

Complete expression: [js] {javascript expression}

Examples:

  • [js] '%player%' == 'AziRixX'

  • [js] %arg_num% % 2 == 0

Last updated