Skip to Content
MineDuels

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

  1. Put PlaceholderAPI in plugins/ and restart.
  2. MineDuels registers its own expansion on start. You do not need /papi ecloud download.
  3. The expansion lives inside MineDuels, so it survives /papi reload.
  4. 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

WherePlaceholderAPI values
Other plugins (TAB, chat, scoreboards, MOTD)%mineduels_...%
guis/ menus, lobby items, queue menu lore%mineduels_...% and other plugins' placeholders
scoreboard.yml, tab.ymlThe built-in %elo%, %kit% and so on work without PlaceholderAPI. PlaceholderAPI values also work there
Group prefix and suffix in tab.ymlPlaceholderAPI 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 seeCause and fix
The raw %mineduels_...% textPlaceholderAPI is missing, or the placeholder name is wrong. Check it with /papi parse me ...
An empty valueThe player has no loaded profile yet, or the kit never played. Values for offline players are empty
A value that does not changeThe 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.

On this page