Variables
Variables are placeholders for dynamic data in Ability configurations. They allow for more flexibility and customization in Abilities.
Usage
To use a variable, simply include it in an Ability configuration with the %
symbol surrounding it. For example:
Available Variables
VARIABLE | DESCRIPTION |
---|---|
| The name of the entity that initiated an Ability. |
| The name of the entity that was targeted by an Ability. |
| The type of the block that was targeted by an Ability. |
| The current system time, in milliseconds. |
| Amount of exp that was dropped in trigger event |
| Main entity's name |
| Damage dealt (after armor etc) |
| Raw damage dealt (before armor etc) |
| Cause of damage |
| Last <random> number |
| Whether the effect is being removed. Is used mostly on triggers like EFFECT_STATIC, HELD etc. |
| Returns client's protocol version. Find all versions here: https://wiki.vg/Protocol_version_numbers |
| From BREW_POTION trigger, passes data on potion. Potion types: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/potion/PotionEffectType.html |
Plugin-specific variables:
AdvancedEnchantments:
VARIABLE | DESCRIPTION |
---|---|
| Level of enchantment |
| Amount of souls in item |
Last updated