Get Nexal Leaderboards on the Nexal Studios store
Installation
Requirements
| Server | Paper or Spigot, Minecraft 1.20.4 or newer |
| Java | 17 or newer |
| PlaceholderAPI | Required. Every leaderboard ranks a PlaceholderAPI placeholder |
| PlaceholderAPI expansions | The ones for the stats you want to rank, such as Vault, Statistic or Player |
| FancyNpcs or Citizens | Optional, only for leaderboard NPCs |
| MySQL or MariaDB | Optional. Everything is stored in a JSON file unless you choose SQL |
No hologram plugin is needed: holograms are drawn with Minecraft's own text displays.
Install
- Install PlaceholderAPI if your server does not have it.
- Download
NexalLeaderboards-<version>.jarfrom your account on nexalstudios.com. - Put it in your server's
plugins/folder. - Start the server (or restart it). Do not load it with a plugin manager while the server runs.
- Check the console for
Nexal Leaderboards has been enabled!. With FancyNpcs or Citizens installed, it also saysLeaderboard NPCs use FancyNpcs.(or Citizens).
The first start creates plugins/NexalLeaderboards/:
| File | What it is |
|---|---|
config.yml | Storage, refresh intervals, number formats, periods, history, rewards |
messages.yml | Every message and sound, the leaderboard GUI texts, the hologram, sign and NPC text |
data.json | Scores, score history, holograms, signs, heads and NPCs, when storage is JSON |
Out of the box nothing is ranked yet: you choose what to rank. Getting Started walks through your first leaderboard.
Install the expansions for your stats
A leaderboard can only rank what PlaceholderAPI can read. The common ones:
/papi ecloud download Vault
/papi ecloud download Statistic
/papi ecloud download Player
/papi reload
Check that a placeholder gives a number before you rank it:
/papi parse me %vault_eco_balance%
It should print a number, such as 1500.0. Choose what to rank
lists placeholders that make good leaderboards.
Use MySQL or MariaDB instead
JSON is fine for most servers. Use SQL when you already run a database or the data file grows large (the score history adds up on busy servers):
- In
config.yml, setstorage.type: sqland fill instorage.sql(host, port, database, username, password). - Run
/lb admin reload, or click Reload in/lb admin. The plugin creates its tables on its own.
If the database cannot be opened, the plugin says so and keeps using JSON. Already have leaderboards in JSON? Export them first: see Moving between JSON and SQL.
Updating
- Stop the server.
- Replace the old jar in
plugins/with the new one. - Start the server.
Your config.yml, messages.yml and data are kept. When an update adds settings, the plugin
adds them to your config.yml on the first start without changing your values, and keeps the
file as it was next to it as config.yml.v<N>.bak. New messages that your messages.yml does
not have yet use their defaults until you add them.
Updating from 1.0.3 or older adds periods, the score history, number formats, rewards and the rank arrows. The history starts with each player's current score, so the period leaderboards fill up as players play from then on.
The changes in each version are on the plugin's page at nexalstudios.com.