Conditions


Conditions show/hide items based on player data, placeholders, permissions, etc. Placed inside item definition:
Common Conditions:
has-permission.permission
: Player must have the given permission.has-money.required-balance
: Player’s economy balance must be >= this amount.is-integer.value
: Checks if placeholder parsed as integer is valid.conditional-placeholder.condition
: Complex comparison (==
,!=
,<
,>
,<=
,>=
).
If conditions fail, the item does not appear.
conditionFailMessage: Optional key to show message to player if conditions fail and they try to interact. Usually needed only on click events.
General Syntax:
Supported Conditions:
has-permission:
Player must have
myplugin.use
permission.
has-money:
Player’s Vault economy balance >= 1000.
is-integer:
Checks if
%input%
placeholder is a valid integer.
double (is-double or parse double):
Checks if
%input%
can be parsed as a double number.
conditional-placeholder:
Allows complex comparisons:
==
,!=
,<
,>
,<=
,>=
Compare two numeric placeholders or strings.
If multiple conditions are listed under conditions:
, all must be true for the item to appear.
Last updated