Placeholders
PlaceholderAPI placeholders for ExyliaArmorTrims: the trim a player chose on each piece of armor, and their crate keys and unlocks.
Placeholders need PlaceholderAPI. Each trim placeholder names a piece first and then what you want to know: %exyliaarmortrims_<piece>_<value>%, where the piece is helmet, chestplate, leggings or boots.
All placeholders#
| Placeholder | Shows | Example |
|---|---|---|
%exyliaarmortrims_<piece>_trim% | The stored choice as pattern/material. | sentry/netherite |
%exyliaarmortrims_<piece>_name% | The trim's display name. | Sentry Netherite |
%exyliaarmortrims_<piece>_pattern% | The pattern's key. | sentry |
%exyliaarmortrims_<piece>_pattern_name% | The pattern's display name. | Sentry |
%exyliaarmortrims_<piece>_material% | The material's key. | netherite |
%exyliaarmortrims_<piece>_material_name% | The material's display name. | Netherite |
%exyliaarmortrims_<piece>_has_trim% | true or false: whether the piece has a choice. | true |
%exyliaarmortrims_keys% | The crate keys the player holds. | 3 |
%exyliaarmortrims_unlocked% | How many prizes the player unlocked that the catalogue still offers. | 12 |
%exyliaarmortrims_unlocked_<id>% | true or false: whether the player unlocked that prize (pattern:<id> or material:<id>). | true |
%exyliaarmortrims_tier_count_<tier>% | How many prizes a rarity holds. | 5 |
The crate placeholders count what the crate and the shop unlocked only, not what a permission grants. See The crate.
Example#
%exyliaarmortrims_helmet_name%
%exyliaarmortrims_boots_pattern_name%
%exyliaarmortrims_chestplate_has_trim%What they answer#
They answer with what the player chose in the menu, not with what they are wearing at that moment. A scoreboard saying "Helmet: Sentry Netherite" keeps saying it while its owner swims without a helmet. The trim engraved on one particular piece of armor is not here; for that, see the API.
| Situation | Answer |
|---|---|
| A piece with no choice | placeholders.none from messages.yml, None by default. has_trim returns false. |
| A mistyped piece or an unknown value | The same fallback. |
Mode item | Always the fallback: in that mode there is no menu choice to ask about. |
Something missing on this page? Tell us on Discord