Skip to content

Placeholders

Jan Kluka edited this page Sep 13, 2026 · 1 revision

PlaceholderAPI Placeholders

X-Prison Armors registers the xprisonarmors expansion when PlaceholderAPI is installed. Use the placeholders in scoreboards, tab lists, chat formats, holograms or any PAPI-compatible plugin.

Every placeholder reads the player's worn set, including armor XP that has been earned but not yet written to the items. They are safe to ask for every tick — they read a cached snapshot and never scan the inventory on an async thread.

Replace [currency] with the lowercase X-Prison currency id (money, tokens, gems, …).


Set

Placeholder Description
%xprisonarmors_tier% Tier id of the worn set (common, insanity, …) or none
%xprisonarmors_tier_display% The tier's MiniMessage display name
%xprisonarmors_level% Current level
%xprisonarmors_max_level% Levels in the current tier
%xprisonarmors_xp% Armor XP into the current level
%xprisonarmors_xp_required% Armor XP the current level costs (0 when maxed)
%xprisonarmors_xp_percent% Progress through the current level, one decimal (45.0)
%xprisonarmors_xp_bar% The MiniMessage progress bar from armors.yml → xp.bar
%xprisonarmors_next_tier% Id of the next tier, or none on the last tier
%xprisonarmors_maxed% true once the last level of the last tier is reached

Wearing

Placeholder Description
%xprisonarmors_equipped% true while all four pieces of one set are worn
%xprisonarmors_worn% Number of valid pieces worn (0–4)

Skin

Placeholder Description
%xprisonarmors_skin% Id of the applied skin, or none
%xprisonarmors_skin_display% The skin's MiniMessage display name, empty without a skin

Boosts (percent, e.g. 12.5)

Placeholder Description
%xprisonarmors_boost_[currency]% Currency boost currently active, e.g. %xprisonarmors_boost_tokens%
%xprisonarmors_boost_pickaxe_xp% Pickaxe XP boost currently active
%xprisonarmors_boost_enchant_proc% Enchant proc chance boost currently active

Boost placeholders already respect bonuses.require-full-set, mixed sets and skin permissions — they return exactly what the plugin applies, 0 when nothing applies.


Example (scoreboard line)

&6Armor: %xprisonarmors_tier_display% &7Lv &f%xprisonarmors_level%&7/&f%xprisonarmors_max_level% &8| &e%xprisonarmors_xp_percent%%

Clone this wiki locally