Skip to main content

Rank Change Arrows

A leaderboard is more fun when you can see it move. Next to every rank the plugin can show how that player moved since yesterday:

ArrowMeans
▲3 (green)Up three ranks
▼1 (red)Down one rank
nothingSame rank as before
NEW (yellow)Was not on this board before

Where they show​

They are already in the default texts of the leaderboard menu, holograms and signs. Elsewhere, add them with a placeholder:

%nexalleaderboards_vault_eco_balance_1_change%      → ▲2 (how #1 moved)
%nexalleaderboards_vault_eco_balance_rank_change% → ▼1 (how the viewer moved)
%nexalleaderboards_vault_eco_balance_weekly_1_change% → the same on the weekly board

In messages.yml they are %change%: in leaderboard-gui.entry.name, hologram.line, sign.lines and npc.name. Add %change% to leaderboard-top-entry to show them in /lb top too, or remove it from any text where you do not want them.

Compared with when?​

By default with 24 hours ago: "since yesterday". Change it in /lb admin → Configuration → Rank Change Arrows (left click +1 hour, shift click +1 day), up to a year. Set it to 7 days for "since last week", or to 1 hour on a fast moving board.

rank-change:
hours: 24

The plugin works out the old ranking from the score history, so the arrows are right from the first day you use them, and never need a reset.

On a period board the arrows compare with the same board as it stood then. On This Week on Thursday, ▲2 means "two ranks higher on this week's board than on Wednesday".

Changing how they look​

In messages.yml:

rank-change:
up: "<green>▲%change%</green>"
down: "<red>▼%change%</red>"
same: ""
new: "<yellow>NEW</yellow>"

%change% is the number of ranks. Some ideas:

  • same: "<gray>-</gray>" to show a dash for an unchanged rank.
  • up: "<green>+%change%</green>" for plain numbers instead of arrows.
  • new: "" to hide NEW on boards where new players join all the time.