Skip to main content

The Leaderboard Menu

The menu is where players look at a whole leaderboard: every ranked player as their own head, page after page. It opens with /lb gui <leaderboard>, or by clicking any hologram, sign, head or NPC of that leaderboard.

What players seeโ€‹

PartWhat it is
TitleLeaderboard - vault_eco_balance, with the period's name when one is shown
HeadsOne per player, 45 per page, with their skin. The name is the rank, the player and the arrow; the top three are gold, silver and bronze
Head loreValue: in the leaderboard's number format. Raw: the exact number
Clock (bottom left)The period shown. Left click for the next one, right click for the previous one. The lore lists every period, the one shown marked
ArrowsPrevious and next page, when there are more pages
Paper (bottom middle)Page 2 of 5, how many players are ranked
Barrier (bottom right)Close

The menu updates by itself while it is open, every 5 seconds by default: players can watch the race live. Change how often in /lb admin โ†’ Configuration โ†’ GUI Refresh Rate.

Opening it on a periodโ€‹

/lb gui vault_eco_balance weekly

opens straight on This Week. A hologram or sign that shows a period opens the menu on that period, so a player clicking the weekly hologram sees the weekly board.

Who can open itโ€‹

Everyone with nexalleaderboards.use, which every player has by default. Take it away to keep the leaderboards for staff only. Admins also open it from /lb admin โ†’ Leaderboards โ†’ a leaderboard โ†’ View Rankings.

Changing how it looksโ€‹

Everything is in the leaderboard-gui section of messages.yml, and the titles in gui-leaderboard and gui-leaderboard-period:

gui-leaderboard: "<gradient:#9B59B6:#A569BD>Leaderboard</gradient> <gray>-</gray> <white>%placeholder%</white>"

leaderboard-gui:
entry:
name:
first: "<gradient:#FFD700:#FFA500><bold>#%rank%</bold></gradient> <white>%player%</white> %change%"
second: "<gradient:#C0C0C0:#A9A9A9><bold>#%rank%</bold></gradient> <white>%player%</white> %change%"
third: "<gradient:#CD7F32:#B87333><bold>#%rank%</bold></gradient> <white>%player%</white> %change%"
other: "<gradient:#AAAAAA:#BBBBBB>#%rank%</gradient> <white>%player%</white> %change%"
lore:
- ""
- "<gradient:#AAAAAA:#BBBBBB>โ— Value ยป</gradient> <gradient:#B983CE:#C99DDA>%value%</gradient>"
- "<gradient:#AAAAAA:#BBBBBB>โ— Raw ยป</gradient> <white>%raw%</white>"

Some ideas:

  • Remove the Raw line if your players do not care about decimals.
  • %placeholder% in the titles and buttons is the leaderboard's display name, such as Playtime, or its placeholder when it has none. Give each leaderboard a name rather than changing the title, since every leaderboard shares it.
  • The buttons (previous-page, next-page, page-info, period, close) each have a name and lore. page-info knows %page%, %pages%, %total% and %placeholder%.

Changes show the next time the menu is opened.