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
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
Type | Description | Values required |
---|---|---|
| Check if value 1 is equal to value 2. | βοΈ |
| Check if value 1 is greater than value 2. | βοΈ |
| Check if value 1 is greater than or equal to value 2. | βοΈ |
| Check if value 1 is less than value 2. | βοΈ |
| Check if value 1 is less than or equal to value 2. | βοΈ |
| Check if value 1 contains value 2. | βοΈ |
| Check if the size of value 1 is equal to value 2. | βοΈ |
| Check if value 1 starts with value 2. | βοΈ |
| Check if value 1 ends with value 2. | βοΈ |
| Check if value 1 matches the regex pattern characterized by value 2. | βοΈ |
| Check if value 1 is numeric. | β |
| Check if value 1 is alphabetical. | β |
| Check if value 1 is lowercase. | β |
| 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