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

TypeDescriptionValues required

EQUALS /== /=

Check if value 1 is equal to value 2.

βœ”οΈ

GREATER / >

Check if value 1 is greater than value 2.

βœ”οΈ

GREATER_EQUALS / >=

Check if value 1 is greater than or equal to value 2.

βœ”οΈ

LESS / <

Check if value 1 is less than value 2.

βœ”οΈ

LESS EQUALS / <=

Check if value 1 is less than or equal to value 2.

βœ”οΈ

CONTAINS / has / in

Check if value 1 contains value 2.

βœ”οΈ

LENGTH / size

Check if the size of value 1 is equal to value 2.

βœ”οΈ

STARTS WITH

Check if value 1 starts with value 2.

βœ”οΈ

ENDS WITH

Check if value 1 ends with value 2.

βœ”οΈ

MATCHES

Check if value 1 matches the regex pattern characterized by value 2.

βœ”οΈ

IS NUMERIC

Check if value 1 is numeric.

❌

IS ALPHABETIC

Check if value 1 is alphabetical.

❌

IS LOWER

Check if value 1 is lowercase.

❌

IS UPPER

Check if value 1 is uppercase.

❌

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