Skip to main content

Tracking and Refreshes

Every leaderboard starts with one PlaceholderAPI placeholder, such as vault_eco_balance. Once the plugin tracks it, it reads that placeholder for every player online, on a timer, and ranks what it reads. This page explains what happens in between, so the board never surprises you.

Starting to track​

There are three ways a placeholder becomes a leaderboard:

HowWhen to use it
/lb admin → Leaderboards → Track a Placeholder, then type it in chatThe usual way
/lb admin track <placeholder>From the console or a script
Auto-tracking: a %nexalleaderboards_<placeholder>_1% placeholder is used somewhereWhen you paste a scoreboard line first and want the board to follow

Before tracking, the plugin reads the placeholder for the players online. If it gives text for all of them (a name, a word, an unknown placeholder printed back as is), it refuses with does not give a number for anyone online and shows what came back. If nobody is online, it tracks it anyway and checks it at the first refresh.

Auto-tracking only picks up placeholders that give a number, so a typo in a scoreboard never creates a leaderboard. A wrong one is tried again after a minute at the most. Turn it off under Configuration → Auto-Track on Query if you only want the boards you add yourself.

How a value is read​

The plugin takes the first number in what the placeholder gives, after removing colour codes, thousands separators and spaces:

The placeholder givesCounts as
15001500
&a1,500.251500.25
Level 55
-20-20
2d 3h 15m2 (use the raw value instead: see Choose what to rank)
none0

Refreshes​

A refresh reads the placeholder for every player online and stores what changed. Each leaderboard has its own interval: 5 minutes by default, from 10 seconds up to 24 hours. Change it on the leaderboard's screen (Refresh Interval) or for new leaderboards under Configuration → Default Refresh Interval.

After every refresh, everything that shows the leaderboard updates: holograms, signs, heads, NPCs, the menu and the placeholders. Refresh Now on the leaderboard's screen runs one at once and tells you how many players it read.

How short should it be? A refresh reads the placeholder for each online player. Most placeholders are cheap, so a minute is fine on a small server. On a server with hundreds of players and many leaderboards, keep the default or raise it.

Players who log off​

A player only gets new values while they are online, but they keep their last value when they log off. A player who earned a million last month and has not been back since is still on the all time board with that million. Their period scores stop growing, since they gain nothing while away.

A new player shows up at the first refresh after they join.

How many players are ranked​

Configuration → Max Players per Leaderboard (1000 by default) caps how many players a leaderboard ranks. Players below the cap are not shown, but their values are kept: if they climb back above it, they reappear with the right value. Set it to unlimited when you want everyone ranked; lower it on a very large server.

Ties​

Players with the same value are ranked by name, so the order is always the same and never flickers between refreshes.

Stopping​

Stop Tracking on the leaderboard's screen (shift right click) or /lb admin remove \<placeholder> deletes the leaderboard: its scores, its score history, and every hologram, sign, head and NPC that shows it. There is no undo, so export first if you might want it back: see Storage and Backups.