Skip to main content

Nexal Leaderboards

Turn any numeric PlaceholderAPI placeholder into a ranked leaderboard. The plugin reads the placeholder for every online player on a timer, keeps the scores (offline players included), and shows the rankings through a paginated GUI, chat commands, holograms and its own placeholders such as %nexalleaderboards_vault_eco_balance_1% for scoreboards, tab lists and signs. Every leaderboard is also ranked for periods (today, this week, the last 30 days and so on) from a score history the plugin keeps.

New to the plugin? Start with Installation and Getting Started. How to Use is for players, and the Admin Manual covers running it. Every feature has its own page under Features, such as Periods, Rewards and Holograms; the how-to pages walk through tasks such as a weekly competition, reward ideas and a leaderboard wall, and the FAQ has quick answers.

Features​

  1. Any Numeric Placeholder - Rank Vault balances, kills, playtime, levels or any custom stat that PlaceholderAPI can resolve to a number
  2. Auto-Tracking - The first time %nexalleaderboards_<placeholder>_<pos>% is asked for, the placeholder starts being tracked, but only if it gives a number for someone online; typos and text placeholders are ignored
  3. Validated Manual Tracking - /lb admin track strips % signs and refuses placeholders that do not give a number
  4. Per-Leaderboard Refresh Intervals - Each leaderboard refreshes on its own interval (default 5 minutes, minimum 10 seconds)
  5. Lowest or Highest First - A leaderboard can rank the lowest value first (best lap time, fewest deaths), set in config.yml or the admin GUI; _reversed placeholders count from the other end
  6. Excluded Players - Players given nexalleaderboards.exclude (or nexalleaderboards.exclude.<placeholder> for one leaderboard) are left off the rankings; operators are not excluded unless given it, and the scores keep being recorded
  7. Leaderboard Placeholders - Name, raw value and formatted value for any rank, plus the viewing player's own rank and value, with modifiers that chain (_1_compact_reversed)
  8. Display Names - A friendly name per leaderboard (Playtime instead of statistic_time_played, colour tags allowed), shown in /lb top, /lb player, reward messages, the GUI, holograms, signs, heads and NPCs; set in config.yml or the admin GUI, and available as %nexalleaderboards_<placeholder>_name%
  9. Number Formats - Values as numbers (1,234,567), compact (1.2M) or times (2d 3h 15m, from ticks, seconds, minutes or hours); a default, a format per leaderboard set in config.yml or the admin GUI, and placeholder overrides
  10. Period Leaderboards - What each player gained today, this week, this month, in the last 24 hours, 7 or 30 days, or in periods you define; in placeholders, /lb top, /lb gui and holograms
  11. Period Rewards - Console commands for the top players when a day, week, month or year ends (rank 1, ranks 2-3 and so on), set in config.yml or the admin GUI; offline winners get theirs when they join, and no period is paid twice, and the winners can be announced in chat (on or off in the settings)
  12. Rank Change Arrows - ▲3, ▼1 or NEW next to every rank, against the rank 24 hours ago (configurable), in the GUI, holograms and the _change placeholders
  13. Score History - A score for every hour of the last 7 days and one for every day of the last 400 (both configurable), so a period added later covers the past too
  14. Holograms - Place a hologram showing the top 1 to 20 of a leaderboard, all time or for a period; it redraws after every refresh, needs no hologram plugin (native text displays), and clicking it opens the leaderboard GUI
  15. Signs, Heads and NPCs - Show one rank on a sign (rank, name, value), a player head with that player's skin, or an NPC of them with FancyNpcs or Citizens; they update after every refresh, cannot be broken, and open the leaderboard GUI when clicked
  16. Paginated GUI - Player heads with rank, name and value, auto-refreshing while open, with a button to switch between all time and the periods
  17. Chat Rankings - /lb top for the top players and /lb player for any player's ranks, online or offline
  18. Admin GUI - Everything can be set up from menus: /lb admin opens a hub with the settings (default number format and history retention included), the periods (add, change, remove, time zone), tracking a new placeholder by typing it in chat, every tracked leaderboard (interval, number format, ranking order, display name, rewards, excluded players, refresh now, remove), the holograms and the signs, heads and NPCs (create, change, move, remove), export, import and reload
  19. Offline Player Retention - Players keep their score after logging off; it updates the next time they are online during a refresh
  20. Dual Storage - JSON or MySQL/MariaDB, with export/import to move between them; writes run off the main thread
  21. Customizable Messages - Every message and the hologram text live in messages.yml
  22. Safe Updates - An older config.yml gets the new settings on the first start (the old file is kept as config.yml.v<N>.bak), and missing messages fall back to the bundled text

Technologies​

  • Paper API 1.20.4+ - Minecraft server API (Spigot compatible); Minecraft 1.20.4 or newer
  • Utilizer - Configuration, messages, GUIs, tasks, native holograms
  • ACF - Command framework
  • nexal-core - JSON and SQL persistence (MariaDB/MySQL), help menus
  • PlaceholderAPI - Required; the source of every leaderboard
  • FancyNpcs or Citizens - Optional; needed only for leaderboard NPCs

Commands​

Aliases: /lb, /leaderboard, /leaderboards.

Player Commands​

CommandDescriptionPermission
/lb help [page]Show helpNone
/lb listList all tracked placeholdersnexalleaderboards.use
/lb info <placeholder>Players, last and next refresh, intervalnexalleaderboards.use
/lb top <placeholder> [period] [count]Top players in chat, all time or for a period (count 1-100, default 3)nexalleaderboards.use
/lb player <player> [placeholder]A player's ranks, online or offlinenexalleaderboards.use
/lb gui <placeholder> [period]Open the paginated leaderboard GUInexalleaderboards.use

Admin Commands​

CommandDescriptionPermission
/lb adminOpen the admin GUI (the admin help from the console)nexalleaderboards.admin
/lb admin help [page]Admin help as textnexalleaderboards.admin
/lb admin track <placeholder>Start tracking a placeholder (with or without %)nexalleaderboards.admin
/lb admin remove <placeholder>Stop tracking and delete its scores, holograms, signs, heads and NPCsnexalleaderboards.admin
/lb admin setinterval <placeholder> <seconds>Set a leaderboard's refresh interval (min 10)nexalleaderboards.admin
/lb admin refresh <placeholder>Refresh now and report the resultnexalleaderboards.admin
/lb admin hologram listList the hologramsnexalleaderboards.admin
/lb admin hologram create <name> <placeholder> [lines] [period] [at <world> <x> <y> <z>]Place a hologram of the top 1-20 (default 10) where you stand, or at a placenexalleaderboards.admin
/lb admin hologram set <name> <lines|period|placeholder> <value>Change a hologram (period all for all time)nexalleaderboards.admin
/lb admin hologram movehere <name>Move a hologram to younexalleaderboards.admin
/lb admin hologram move <name> <world> <x> <y> <z>Move a hologram to a placenexalleaderboards.admin
/lb admin hologram delete <name>Delete a hologramnexalleaderboards.admin
/lb admin display listList the signs, heads and NPCsnexalleaderboards.admin
/lb admin display create <sign|head|npc> <name> <placeholder> <rank> [period] [at <world> <x> <y> <z> [yaw]]Show one rank on a sign or head (in the block you look at) or an NPC (where you stand), or at a placenexalleaderboards.admin
/lb admin display set <name> <rank|period|placeholder> <value>Change a displaynexalleaderboards.admin
/lb admin display movehere <name>Move a display to you (a sign or head: to the block you look at)nexalleaderboards.admin
/lb admin display move <name> <world> <x> <y> <z> [yaw]Move a display to a placenexalleaderboards.admin
/lb admin display delete <name>Remove a display, its sign or head block includednexalleaderboards.admin
/lb admin reloadReload config.yml and messages.yml; switches storage when storage.type changednexalleaderboards.admin
/lb admin exportExport all data to export/nexalleaderboards.admin
/lb admin importImport the files in export/nexalleaderboards.admin

Everything here can also be done from the menus of /lb admin. The commands that place something take at <world> <x> <y> <z> instead of your position, so a console, a script or an AI agent can build with them; from the console that part is required.

Permissions​

PermissionDescriptionDefault
nexalleaderboards.useBasic leaderboard commandstrue
nexalleaderboards.adminAdmin commands and GUI (includes use)op
nexalleaderboards.excludeLeft off every leaderboardfalse
nexalleaderboards.exclude.<placeholder>Left off one leaderboard, e.g. nexalleaderboards.exclude.vault_eco_balancefalse

Excluding players: only a player who is given an exclude permission is left out; being an operator is not enough. The permission is checked on every refresh while the player is online, and the exclusion is stored, so it holds while they are offline and ends at the first refresh after the permission is taken away. Their scores and history keep being recorded meanwhile, so they come back with the right values. A wildcard such as nexalleaderboards.* or * in your permissions plugin gives the exclude permission too: set nexalleaderboards.exclude to false for those groups. /lb info and the leaderboard's admin screen show how many players are excluded.

Placeholders​

Requires PlaceholderAPI. A placeholder is built as %nexalleaderboards_<placeholder>[_<period>]_<target>[_<modifier>...]%:

  • <placeholder>: the tracked placeholder without % signs
  • <period> (optional): a period from config.yml, such as weekly or 30d, for that period's ranking
  • <target>: a rank starting at 1, rank (the viewing player's rank) or score (the viewing player's value)
  • <modifier>: any number, in any order, at most one of each kind
ModifierGives
namePlayer name (the default for a rank)
valueRaw value, 1500000.5 (the default for score)
formattedThe value in the leaderboard's number format
number, compact, timeThe value as 1,500,000.5, 1.5M or 2d 3h 15m, whatever the leaderboard's format
ticks, seconds, minutes, hoursThe unit a time is counted in, instead of the leaderboard's
reversedCount from the other end: rank 1 is the lowest value (the highest on a lowest-first leaderboard)
changeHow the rank moved since rank-change.hours ago: ▲3, ▼1, NEW (coloured, from messages.yml)

rank takes only reversed and change; score takes everything but name and change. An empty rank returns - for the name and 0 for the values; an unranked viewer gets - for the rank and 0 for the value.

%nexalleaderboards_<placeholder>_name%, with no target, gives the leaderboard's display name (display-names in config.yml), coloured, or the placeholder itself when it has none. When the part before _name is a tracked placeholder, it is always read this way (as with periods, a tracked placeholder stays itself).

%nexalleaderboards_vault_eco_balance_1%            → Steve
%nexalleaderboards_vault_eco_balance_1_formatted% → 1,500,000.5
%nexalleaderboards_statistic_player_kills_3_value% → 150.0
%nexalleaderboards_statistic_player_kills_weekly_1% → Alex (most kills this week)
%nexalleaderboards_vault_eco_balance_30d_rank% → 12 (the viewer, by money earned in 30 days)
%nexalleaderboards_vault_eco_balance_1_compact% → 1.5M
%nexalleaderboards_statistic_time_played_score_time_ticks% → 2d 3h 15m (the viewer's play time)
%nexalleaderboards_parkour_time_1_name_reversed% → Steve (the lowest value)
%nexalleaderboards_vault_eco_balance_1_change% → ▲2 (the #1 moved up two ranks in a day)
%nexalleaderboards_vault_eco_balance_rank_change% → NEW (the viewer was not ranked a day ago)
%nexalleaderboards_vault_eco_balance_name% → Richest (the leaderboard's display name)

Scoreboard example:

lines:
- "&6Top Balances:"
- "#1 %nexalleaderboards_vault_eco_balance_1% - $%nexalleaderboards_vault_eco_balance_1_formatted%"
- "#2 %nexalleaderboards_vault_eco_balance_2% - $%nexalleaderboards_vault_eco_balance_2_formatted%"
- "#3 %nexalleaderboards_vault_eco_balance_3% - $%nexalleaderboards_vault_eco_balance_3_formatted%"

How tracking works​

  1. A placeholder starts being tracked with /lb admin track, or automatically the first time a %nexalleaderboards_...% placeholder asks for it (auto-track-on-query: true). Either way it must give a number for at least one online player; an unknown or text placeholder is refused (auto-tracking tries such a placeholder again after a minute at most).
  2. On every refresh the placeholder is read for each online player and the scores are stored.
  3. Offline players keep their last score.
  4. A value counts as its first number. Colour codes, thousands separators and spaces are removed first, so a gold 1,500 is 1500 and Level 5 is 5; a value without digits reads as 0.

How periods work​

A period's score is a player's value now minus their value when the period started: the kills made this week, the money earned in the last 30 days. Players whose value did not change in the period are not ranked on it. A value that went down gives a negative score.

The values in between come from the score history: on every refresh the plugin keeps the last value of each hour, for history.hourly-days days, and the last value of each day after that, up to history.retention-days. Periods are worked out from it whenever they are asked for, so changing or adding a period applies to the past too, as far back as the history goes. History starts when a placeholder is first tracked (or, for the scores of an older version, with their last stored value), and a player first seen during a period counts from the value they had then.

  • calendar periods start again at midnight (in timezone) on each new day, week, month or year; rolling periods are the last so many hours or days and move on every hour
  • Periods can be added, changed and removed in-game under /lb admin → Periods: the name of a new period is typed in chat, then its kind, unit, week start or length and display name are set in its screen. The Time Zone button there sets timezone. Every change is saved to config.yml and applies right away. Removing a period keeps the history, so adding it back brings its rankings back
  • A rolling period older than the hourly history is accurate to the day

Rank change arrows​

Every rank can show how it moved: ▲3 (up three), ▼1 (down one), nothing for the same rank, NEW for a player who was not ranked then. It compares the rank with the rank rank-change.hours ago (24 by default, also in the settings GUI), from the score history. On a period board it compares with the same board as it stood then. The arrows are in the rank-change section of messages.yml and show as %change% in the GUI entry names, the hologram lines and, if you add it, leaderboard-top-entry; in placeholders as _<pos>_change and _rank_change.

Period rewards​

When a calendar period ends (a new day, week, month or year in timezone), the plugin runs the commands of the rewards section for the players ranked on it, from the console:

rewards:
vault_eco_balance: # the leaderboard
weekly: # a calendar period
"1":
- "eco give %player% 10000"
- "broadcast %player% earned the most this week: %value%"
"2-3":
- "eco give %player% 5000"
  • The ranking is the final one of the period that ended, worked out from the score history, so it is the same whenever the check runs; it follows the leaderboard's order and leaves out excluded players. Ranges may overlap: every tier that covers a rank runs.
  • A score of nothing earns nothing: on a highest-first leaderboard a player needs a score above 0 for the period, and on any leaderboard a score that is written as 0 (under a second of play time shows as 0s) is skipped. Skipped players get no commands, no message and are not announced; the ranks of the others stay as they are.
  • In a command: %player%, %uuid%, %rank%, %value% (the period's score in the leaderboard's number format), %period% (its name), %placeholder% (the placeholder itself) and %name% (the leaderboard's display name, as written in display-names).
  • A player who is offline gets the reward the next time they join, with a message.
  • Every payout is stored: a restart never pays a period twice, and a period that ended while the server was down is paid when it starts again (only the last one, if several ended). A reward set up during a period is first paid at the end of that period.
  • Rolling periods (7d, 30d) never end, so they have no rewards.
  • With rewards-broadcast: true (the default; also in the settings GUI) the rewarded players are announced in chat: reward-broadcast-header and reward-broadcast-entry in messages.yml, which uses %winner% for the name.
  • In-game: /lb admin → Leaderboards → the leaderboard → Rewards → a period. Add ranks and their commands by typing them in chat (commands without the /); right click removes a tier's last command, shift right click the whole tier. Saved to config.yml.

Holograms​

In-game: /lb admin → Holograms → Create Hologram, pick a leaderboard, and its top 10 appears where you stand; its screen then changes the leaderboard, period and ranks shown, and teleports to, moves or deletes it. Or stand where it should be and run /lb admin hologram create <name> <placeholder> [lines] [period] (from the console: add at <world> <x> <y> <z>). With a period, the hologram shows that period's ranking and resets with it. Players clicking a hologram open the leaderboard GUI for it. Holograms are drawn with native text displays, so no hologram plugin is needed. They redraw after every refresh of their leaderboard and whenever messages.yml changes. Removing a leaderboard deletes its holograms too. The text comes from the hologram section of messages.yml:

hologram:
header:
- "<gradient:#9B59B6:#A569BD><bold>TOP %lines%</bold></gradient>"
- "<gradient:#B983CE:#C99DDA>%placeholder%</gradient> <gray>(%period%)</gray>"
line: "<white>#%rank%</white> <gradient:#9B59B6:#A569BD>%player%</gradient> <gray>-</gray> <gradient:#B983CE:#C99DDA>%value%</gradient>"
empty-line: "<gray>#%rank% -</gray>"
footer: []

Signs, Heads and NPCs​

A display shows one rank of a leaderboard (and period) in the world:

  • Sign: the rank, name and value, from the sign.lines of messages.yml
  • Head: a player head with the skin of the player at that rank
  • NPC: an NPC of that player, named by npc.name in messages.yml. Needs FancyNpcs or Citizens; it uses whichever is installed. The NPCs are not saved by those plugins: Nexal Leaderboards shows them again on every start.

In-game: /lb admin → Signs, Heads and NPCs → New Sign, New Head or New NPC, pick a leaderboard, then right click the block where a sign or head goes (an NPC goes where you stand). It starts at rank #1 for all time; its screen changes the leaderboard, period and rank, teleports to, moves or deletes it. Commands: /lb admin display ... above.

Displays update after every refresh. Signs and heads cannot be broken, edited or blown up; remove them in the GUI or with /lb admin display delete, which also removes the block. Players clicking a sign, head or NPC open the leaderboard GUI for it.

Configuration​

config.yml​

# Storage settings
storage:
# Storage type: json or sql
# To move your data: /lb admin export, change the type, /lb admin reload, /lb admin import
type: json
sql:
host: localhost
port: 3306
database: minecraft
username: root
password: ""

# Default refresh interval in seconds (minimum 10), used for newly tracked placeholders
default-refresh-interval: 300

# Start tracking a placeholder the first time %nexalleaderboards_...% asks for it,
# if it gives a number for someone online
auto-track-on-query: true

# Maximum players ranked per leaderboard (-1 for unlimited)
max-tracked-per-leaderboard: 1000

gui:
# How often an open leaderboard GUI redraws, in ticks (20 ticks = 1 second)
auto-refresh-ticks: 100

# The name players see for a leaderboard instead of its placeholder (colour tags allowed);
# a leaderboard without one shows its placeholder. Admin messages keep the placeholder.
display-names: {}
# statistic_time_played: "Playtime"
# vault_eco_balance: "<gold>Richest</gold>"

# Leaderboards that rank the lowest value first (best lap time, fewest deaths)
lowest-first: []

# Announce the rewarded players in chat when a period's rewards are paid
rewards-broadcast: true

# The rank arrows (▲3, ▼1, NEW) compare with the rank this many hours ago
rank-change:
hours: 24

# How values are written in /lb top, /lb gui, holograms and the _formatted placeholders:
# number (1,234,567.5), compact (1.2M) or time (2d 3h 15m). unit: what a time placeholder
# counts in (ticks, seconds, minutes, hours)
number-format:
default: number
unit: seconds
leaderboards: # leaderboards with a format of their own
statistic_time_played:
type: time
unit: ticks

# Periods: the key is used in placeholders and commands, name is shown to players
# calendar: unit day, week (week-start, default monday), month or year
# rolling: the last <days> or <hours>
periods:
daily: { type: calendar, unit: day, name: "Today" }
weekly: { type: calendar, unit: week, week-start: monday, name: "This Week" }
monthly: { type: calendar, unit: month, name: "This Month" }
24h: { type: rolling, hours: 24, name: "Last 24 Hours" }
7d: { type: rolling, days: 7, name: "Last 7 Days" }
30d: { type: rolling, days: 30, name: "Last 30 Days" }

# Time zone the calendar periods start in (Europe/Athens, America/New_York); empty = the server's
timezone: ""

history:
hourly-days: 7 # a score for every hour, for this many days; then one per day
retention-days: 400 # scores older than this are dropped (1 to 3650)

The bundled file writes each period on several lines; the short form above works too. Removing the periods section turns the period leaderboards off; the history is kept either way.

The default refresh interval, auto-tracking, the player limit, the GUI refresh rate, the default number format, both history settings, the rank arrows and the winner announcement can also be changed in-game under /lb admin → Configuration. A leaderboard's own number format, ranking order and display name are under /lb admin → Leaderboards → the leaderboard (saved to config.yml); its refresh interval is saved in storage. The Display Name button takes a new name typed in chat (cancel aborts) on left click and removes it on right click. The letters of compact numbers and times (K, M, d, h) are in the number-format section of messages.yml. Changes to config.yml apply without a restart, except storage.type, which needs /lb admin reload.

Updating: a config.yml from an older version gets the settings added since on the first start, without changing the values already in it, and the file as it was is kept as config.yml.v<N>.bak. config-version tracks this; do not change it.

messages.yml​

All messages, the /lb gui texts (leaderboard-gui section) and the hologram text are customizable with MiniMessage gradients, sounds and titles, and every message maps %prefix%. Messages added in an update fall back to the bundled text when an older messages.yml does not have them.

%placeholder% is the leaderboard's display name in what players see (/lb top, /lb player, the reward messages and announcement, the GUI, holograms, signs and NPCs) and the placeholder itself in admin messages (tracking, /lb list, /lb info, refresh, intervals, the hologram and display lists), where it is what commands take. The comments in messages.yml mark which is which. The display name prompt and confirmations are display-name-prompt, display-name-set and display-name-removed.

Database Schema​

With SQL storage the plugin creates these tables (with JSON storage the same records live in data.json, one key per table):

leaderboards_tracked​

ColumnTypeKeyDescription
idVARCHAR(255)PKPlaceholder name
lastRefreshBIGINTLast refresh (epoch ms)
refreshIntervalBIGINTRefresh interval (seconds)
playerCountINTPlayers ranked at the last refresh
createdAtBIGINTWhen tracking started (epoch ms)

leaderboards_entries​

ColumnTypeKeyDescription
idVARCHAR(320)PK<placeholder>:<player uuid>
placeholderVARCHAR(255)Placeholder name
playerIdVARCHAR(36)Player UUID
playerNameVARCHAR(16)Player name at the last change
valueDOUBLEScore
lastUpdatedBIGINTLast change of the score (epoch ms)

leaderboards_holograms​

ColumnTypeKeyDescription
idVARCHAR(64)PKHologram name
placeholderVARCHAR(255)Leaderboard shown
linesINTRanks shown
periodVARCHAR(32)Period shown, NULL for all time
worldVARCHAR(64)World name
x, y, zDOUBLEPosition

leaderboards_history​

ColumnTypeKeyDescription
idVARCHAR(320)PK<placeholder>:<player uuid>, the same as the entry
placeholderVARCHAR(255)Placeholder name
playerIdVARCHAR(36)Player UUID
firstValueDOUBLEValue when the history started
pointsMEDIUMTEXTJSON: hours since the epoch (h) and the last value of each (v)

leaderboards_displays​

ColumnTypeKeyDescription
idVARCHAR(64)PKDisplay name
typeVARCHAR(16)SIGN, HEAD or NPC
placeholderVARCHAR(255)Leaderboard shown
periodVARCHAR(32)Period shown, NULL for all time
rankINTRank shown
worldVARCHAR(64)World name
x, y, zDOUBLEPosition (a block for signs and heads)
yawFLOATThe way it faces

leaderboards_reward_state​

ColumnTypeKeyDescription
idVARCHAR(300)PK<placeholder>:<period>
placeholderVARCHAR(255)Placeholder name
periodVARCHAR(32)Period
paidUntilBIGINTStart of the period that was current at the last payout (epoch ms)

leaderboards_pending_rewards​

ColumnTypeKeyDescription
idVARCHAR(36)PKRandom UUID
playerIdVARCHAR(36)Winner
placeholder, periodVARCHARWhat was won
rankINTRank in the period
valueVARCHAR(64)Score, formatted
commandsMEDIUMTEXTJSON list of the commands, placeholders filled in
createdAtBIGINTWhen the period was paid (epoch ms)

leaderboards_excluded​

ColumnTypeKeyDescription
idVARCHAR(320)PK<placeholder>:<player uuid>, the same as the entry
placeholderVARCHAR(255)Placeholder name
playerIdVARCHAR(36)Player UUID
sinceBIGINTWhen the exclusion was first seen (epoch ms)

Key Legend: PK = Primary Key

Installation​

Requirements, SQL setup and updating: Installation.

  1. Install PlaceholderAPI and the expansions for the stats you want to rank (e.g. /papi ecloud download Vault)
  2. Place the plugin JAR in /plugins
  3. Start or restart the server
  4. Track a placeholder: /lb admin → Leaderboards → Track a Placeholder, or /lb admin track vault_eco_balance
  5. Show it: /lb gui vault_eco_balance, a hologram, or the placeholders above

Storage Migration​

  1. /lb admin export
  2. Set storage.type (and the sql section) in config.yml
  3. /lb admin reload switches to the new storage; if it cannot be opened, the old one stays
  4. /lb admin import

Troubleshooting​

"does not give a number for anyone online"​

  • Check the placeholder with /papi parse me %<placeholder>%; it must print a number
  • Install its expansion (/papi ecloud download <name>) and /papi reload

Leaderboard shows all zeros​

  • The placeholder returns text without digits for those players

Placeholder not auto-tracking​

  • Check auto-track-on-query: true in config.yml
  • It must give a number for someone online; track it with /lb admin track <placeholder> otherwise

High CPU usage​

  • Raise the refresh intervals (/lb admin setinterval or the admin GUI)
  • Lower max-tracked-per-leaderboard

A period leaderboard is empty​

  • Only players whose value changed during the period are ranked; history starts when the placeholder is first tracked, so a new period fills as players play
  • /lb top <placeholder> <period> says "Unknown period" and lists the configured ones when the name is wrong

A reward was not given​

  • Rewards only run for calendar periods, and only from the end of the period in which they were set up; the console logs "Paid the <period> rewards of <placeholder> to N player(s)"
  • A player whose score for the period is 0 or less, or shows as 0 (such as 0s), gets nothing
  • An offline winner gets it on their next join; until then it is in leaderboards_pending_rewards
  • Check the command itself in the console, without the /

A player is missing from a leaderboard​

  • Check /lb info <placeholder> for excluded players, then the player's permissions: a wildcard (*, nexalleaderboards.*) also gives nexalleaderboards.exclude

Leaderboard NPCs do not appear​

  • They need FancyNpcs or Citizens; the console logs "Leaderboard NPCs use <plugin>" on start
  • Without one, the GUI shows New NPC as unavailable and the command says so

data.json is large​

  • Lower history.retention-days or history.hourly-days, or use SQL storage