Placeholders
Every PlaceholderAPI placeholder zRivals Duels adds, with examples and how the plugin reads them.
With PlaceholderAPI installed, zRivals Duels adds %duel_...% placeholders for scoreboards, tab lists, holograms, chat formats and profile menus. Every value comes from memory, so placeholders never slow the server down, even on a scoreboard that updates every tick.
Your own stats
These show the stats of the player viewing them.
| Placeholder | Returns | Example |
|---|---|---|
%duel_mmr% | Current season MMR | 1227 |
%duel_rank% | Current rank name, with its colour | Silver |
%duel_rank_position% | Current leaderboard position, 0 when not on it | 14 |
%duel_wins% | Total wins, every duel | 58 |
%duel_losses% | Total losses, every duel | 42 |
%duel_winrate% | Wins out of wins plus losses, as a percentage without the % sign | 58.0 |
%duel_games% | Total ranked games, lifetime | 73 |
%duel_best_mmr% | Highest MMR ever | 1410 |
%duel_best_rank% | Highest rank ever, - when none | Platinum |
%duel_season_wins% | Seasons finished #1 | 2 |
%duel_season_top3% | Top 3 season finishes | 5 |
%duel_current_season% | Current season name | Season 8 |
%duel_season_time_left% | Time until the season ends | 12d 4h 31m |
Leaderboard
Any position works. The number is the position, starting at 1.
| Placeholder | Returns | Example |
|---|---|---|
%duel_top_<position>_player% | Player name at that position | %duel_top_1_player% gives Luxioz |
%duel_top_<position>_mmr% | Their MMR | %duel_top_1_mmr% gives 2315 |
%duel_top_<position>_rank% | Their rank name | %duel_top_1_rank% gives Master |
A top 3 hologram:
#1 %duel_top_1_player% - %duel_top_1_mmr% MMR
#2 %duel_top_2_player% - %duel_top_2_mmr% MMR
#3 %duel_top_3_player% - %duel_top_3_mmr% MMRLeaderboard for one rank
The best players inside a single rank. <rank> is any rank id from ranks.yml, nothing is hardcoded, so your own ranks work too.
| Placeholder | Returns |
|---|---|
%duel_rank_<rank>_top_<position>_player% | Player name at that position within the rank |
%duel_rank_<rank>_top_<position>_mmr% | Their MMR |
Examples: %duel_rank_diamond_top_1_player% is the best Diamond player, %duel_rank_gold_top_3_mmr% is the MMR of the third best Gold player. A rank id with underscores works too, like %duel_rank_grand_master_top_1_player%.
Another player's stats
For profile menus and holograms about a specific player:
%duel_player_<stat>_<name>%<stat> | Returns |
|---|---|
mmr | Current season MMR |
rank | Current rank name |
wins | Total wins |
losses | Total losses |
winrate | Winrate |
games | Total ranked games |
position | Current leaderboard position |
best_mmr | Highest MMR ever |
best_rank | Highest rank ever |
season_wins | Seasons finished #1 |
season_top3 | Top 3 season finishes |
Examples: %duel_player_mmr_Luxioz%, %duel_player_best_rank_Steve%, %duel_player_wins_Cool_Guy%.
The stat comes first and the name last, because player names can contain underscores. Everything after the stat is the name, so Cool_Guy works.
Offline players work too. The first time an offline player is asked for, their data is loaded in the background and the placeholder shows the loading text (...) for a moment. It then stays cached for offline-cache-seconds.
How placeholders are read
This matters only if you name ranks in unusual ways. The part after duel_ is checked in this order, and the first match wins:
- Exact names, like
mmr,rankandrank_position. So%duel_rank_position%is always your position, never a rank calledposition, which is whypositioncannot be a rank id. top_<position>_<field>for the leaderboard.rank_<rank>_top_<position>_<field>, read from the end. The plugin looks for_top_<number>_playeror_top_<number>_mmrat the end, and everything betweenrank_and that is the rank id. That is why rank ids can contain underscores.player_<stat>_<name>, with the stat matched first and the rest taken as the name.
Upper or lower case in the placeholder does not matter, except for the player name, which is looked up as typed.
Empty values and formats
When a position is empty, a player is not ranked, or a player does not exist:
| Kind of value | Returns | Setting |
|---|---|---|
| Names and ranks | - | placeholders.empty-name |
| Numbers | 0 | placeholders.empty-number |
| Still loading | ... | placeholders.loading |
placeholders:
# Number format for winrate, uses Java DecimalFormat
winrate-format: "0.0"
# Format for season time left, tokens: %days% %hours% %minutes%
time-left-format: "%days%d %hours%h %minutes%m"winrate-format:0.0gives57.1,0gives57,0.00gives57.14.time-left-format: for example%days% days, %hours% hoursgives12 days, 4 hours.
Caching
The full season leaderboard, and a separate list per rank, are rebuilt together in the background every leaderboard.refresh-seconds and after every ranked result. Only the top leaderboard.max-cached players (500 by default) are kept, so positions beyond that return the empty text.