zRivals Duels logozRivals Duels

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.

The order placeholders are read in, from exact names to top positions, rank filtered top positions read from the end, and player stats where everything after the stat is the name.

Your own stats

These show the stats of the player viewing them.

PlaceholderReturnsExample
%duel_mmr%Current season MMR1227
%duel_rank%Current rank name, with its colourSilver
%duel_rank_position%Current leaderboard position, 0 when not on it14
%duel_wins%Total wins, every duel58
%duel_losses%Total losses, every duel42
%duel_winrate%Wins out of wins plus losses, as a percentage without the % sign58.0
%duel_games%Total ranked games, lifetime73
%duel_best_mmr%Highest MMR ever1410
%duel_best_rank%Highest rank ever, - when nonePlatinum
%duel_season_wins%Seasons finished #12
%duel_season_top3%Top 3 season finishes5
%duel_current_season%Current season nameSeason 8
%duel_season_time_left%Time until the season ends12d 4h 31m

Leaderboard

Any position works. The number is the position, starting at 1.

PlaceholderReturnsExample
%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% MMR

Leaderboard 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.

PlaceholderReturns
%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
mmrCurrent season MMR
rankCurrent rank name
winsTotal wins
lossesTotal losses
winrateWinrate
gamesTotal ranked games
positionCurrent leaderboard position
best_mmrHighest MMR ever
best_rankHighest rank ever
season_winsSeasons finished #1
season_top3Top 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:

  1. Exact names, like mmr, rank and rank_position. So %duel_rank_position% is always your position, never a rank called position, which is why position cannot be a rank id.
  2. top_<position>_<field> for the leaderboard.
  3. rank_<rank>_top_<position>_<field>, read from the end. The plugin looks for _top_<number>_player or _top_<number>_mmr at the end, and everything between rank_ and that is the rank id. That is why rank ids can contain underscores.
  4. 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 valueReturnsSetting
Names and ranks-placeholders.empty-name
Numbers0placeholders.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.0 gives 57.1, 0 gives 57, 0.00 gives 57.14.
  • time-left-format: for example %days% days, %hours% hours gives 12 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.

On this page