Skip to main content

Display Names

A leaderboard is known by its placeholder, such as statistic_time_played. That is what you type in commands, but it is not what players should read: "You finished #1 on statistic_time_played" looks like a bug. Give each leaderboard a display name, such as Playtime or Richest, and players see that instead.

Where players see it​

The display name replaces %placeholder% everywhere players look at a leaderboard:

Admin messages keep the placeholder, because that is what the admin commands take: tracking, /lb list, /lb info, refreshes, intervals, and the hologram and display lists. /lb list shows players the placeholders too, so they know what to type after /lb top.

A leaderboard without a display name shows its placeholder, as before. Nothing changes until you set names.

Setting it​

/lb admin → Leaderboards → a leaderboard → Display Name (the name tag in the bottom row). The lore shows the current name.

  • Left click, then type the name in chat. Colour tags work: <gold>Richest</gold>. Type cancel to keep the old one.
  • Right click removes it, and players see the placeholder again.

Everything that shows the leaderboard redraws at once. The name is also on the paper at the left of the leaderboard's screen, above the placeholder.

The same thing in config.yml​

The menu writes to the display-names section, by placeholder. You can also write it yourself; it applies as soon as you save the file:

display-names:
statistic_time_played: "Playtime"
vault_eco_balance: "<gold>Richest</gold>"
statistic_player_kills: "Kills"

A placeholder that contains a dot cannot be a key in config.yml, so it cannot have a display name.

In reward commands and placeholders​

  • In a reward command, %placeholder% stays the placeholder and %name% is the display name, as written in display-names (colour tags included).
  • %nexalleaderboards_<placeholder>_name% gives the display name, coloured, for a scoreboard or a tab list: %nexalleaderboards_vault_eco_balance_name% gives Richest. When the part before _name is a tracked placeholder it is always read this way, even if it ends in a number.