PlaceholderAPI
Use %mineduels_...% in other plugins and in MineDuels' own menus when PlaceholderAPI is installed.
PlaceholderAPI is optional. MineDuels works without it. Install it to use MineDuels values in other plugins, such as a TAB plugin, a chat plugin or a holographic display, and to use other plugins' placeholders inside MineDuels menus.
Install
- Put PlaceholderAPI in
plugins/and restart. - MineDuels registers its own expansion on start. You do not need
/papi ecloud download. - The expansion lives inside MineDuels, so it survives
/papi reload. - Test with
/papi parse me %mineduels_global_elo%.
The identifier is mineduels. Every placeholder is %mineduels_<name>%. The full list is in Placeholders.
Where it works
| Where | PlaceholderAPI values |
|---|---|
| Other plugins (TAB, chat, scoreboards, MOTD) | %mineduels_...% |
guis/ menus, lobby items, queue menu lore | %mineduels_...% and other plugins' placeholders |
scoreboard.yml, tab.yml | The built-in %elo%, %kit% and so on work without PlaceholderAPI. PlaceholderAPI values also work there |
Group prefix and suffix in tab.yml | PlaceholderAPI works too |
MineDuels fills its own short placeholders, such as %kit% in a queue menu, before PlaceholderAPI runs. One lore line works for every kit item.
Text from PlaceholderAPI
PlaceholderAPI values are plain text, so a few things differ from MiniMessage output:
- Colours in a value are legacy
§codes, because most plugins expect them. - An
<icon:name>in a value becomes its fallback text, since PlaceholderAPI cannot carry a sprite. See Icons.
Examples
In a TAB plugin header:
header:
- "&aMineDuels"
- "&7ELO: &f%mineduels_global_elo% &8| &7Streak: &f%mineduels_streak%"In chat or a MOTD, for one kit:
Your NoDebuff ELO: %mineduels_elo_nodebuff% (rank %mineduels_rankname_nodebuff%)In a queue menu lore, with the top player of the kit:
lore:
- "<gray>Waiting: <white>%in_queue%"
- "<gold>#1 streak: <white>%mineduels_lb_%kit%_1_best_streak_name% <gray>(<white>%mineduels_lb_%kit%_1_best_streak%<gray>)"Troubleshooting
| You see | Cause and fix |
|---|---|
The raw %mineduels_...% text | PlaceholderAPI is missing, or the placeholder name is wrong. Check it with /papi parse me ... |
| An empty value | The player has no loaded profile yet, or the kit never played. Values for offline players are empty |
| A value that does not change | The plugin showing it caches it. Lower its refresh time |
Related: Placeholders, Scoreboard, Tab list.
For the <tag> placeholders used in messages.yml, see Message placeholders.