Skip to main content

Getting Started

Ten minutes from a fresh install to a leaderboard players can see. You need to be op, or have nexalleaderboards.admin. Everything below is done from the menus; the matching command is shown in case you prefer typing.

This guide ranks the richest players with vault_eco_balance. Any placeholder that gives a number works the same way: see Choose what to rank.

1. Open the admin menu​

/lb admin

The hub has a button for each part of the plugin, in the order you usually set them up: Configuration, Leaderboards, Periods, Holograms, Signs, Heads and NPCs, then Export Data, Import Data and Reload.

2. Track your first leaderboard​

  1. Click Leaderboards, then Track a Placeholder.
  2. The menu closes and asks in chat. Type vault_eco_balance (the % signs are optional).
  3. The plugin checks that it gives a number for the players online, reads everyone's value, and opens the leaderboard's screen.

Command: /lb admin track vault_eco_balance.

If you see does not give a number for anyone online, the placeholder printed text. Test it with /papi parse me %vault_eco_balance% and install its expansion (see Installation).

From now on the plugin reads the value of every online player every 5 minutes, and keeps the last value of players who log off.

3. Look at it​

On the leaderboard's screen, click View Rankings. This is the menu players open with /lb gui vault_eco_balance: a head for every player with their rank, name and value, and arrows to turn the page.

The clock at the bottom left switches between All Time and the periods: today, this week, this month, the last 24 hours, 7 days and 30 days. A period shows what each player gained in it, so This Week is the money earned this week, not the balance. Periods fill up from the moment the leaderboard is tracked.

In chat: /lb top vault_eco_balance (top 3) or /lb top vault_eco_balance weekly 10.

4. Make it look right​

Back on the leaderboard's screen:

  • Number Format: Number writes 1,234,567, Compact writes 1.2M, Time writes 2d 3h 15m. Money reads well as compact; play time as time.
  • Ranking Order: highest first by default. Choose lowest first for lap times or fewest deaths.
  • Refresh Interval: how often values are read again. Click to change it in steps of 10 seconds, shift click for a minute.

Every change is saved to config.yml (or, for the interval, to storage) and applies at once.

5. Put it in the world​

  1. Stand where the leaderboard should float, at eye height.
  2. /lb admin → Holograms → Create Hologram, and pick vault_eco_balance.
  3. A hologram with the top 10 appears where you stand, at your eye height, and its screen opens. Period turns it into a weekly board, Ranks Shown changes how many players it lists.

Players who click the hologram open the leaderboard menu. To also show the winner as a sign, a head or an NPC, see Build a leaderboard wall.

6. Use it on your scoreboard​

Every leaderboard has placeholders for your scoreboard, tab list or chat plugin:

%nexalleaderboards_vault_eco_balance_1%            → Steve       (the name at #1)
%nexalleaderboards_vault_eco_balance_1_formatted% → 1.5M (their value)
%nexalleaderboards_vault_eco_balance_rank% → 12 (the player's own rank)
%nexalleaderboards_vault_eco_balance_weekly_1% → Alex (#1 this week)

Show leaderboards on scoreboards and tab has ready lines to paste.

Next​