Skip to main content

Installation

Requirements​

ServerPaper or Spigot, Minecraft 1.20.4 or newer
Java17 or newer
PlaceholderAPIRequired. Every leaderboard ranks a PlaceholderAPI placeholder
PlaceholderAPI expansionsThe ones for the stats you want to rank, such as Vault, Statistic or Player
FancyNpcs or CitizensOptional, only for leaderboard NPCs
MySQL or MariaDBOptional. 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​

  1. Install PlaceholderAPI if your server does not have it.
  2. Download NexalLeaderboards-<version>.jar from your account on nexalstudios.com.
  3. Put it in your server's plugins/ folder.
  4. Start the server (or restart it). Do not load it with a plugin manager while the server runs.
  5. Check the console for Nexal Leaderboards has been enabled!. With FancyNpcs or Citizens installed, it also says Leaderboard NPCs use FancyNpcs. (or Citizens).

The first start creates plugins/NexalLeaderboards/:

FileWhat it is
config.ymlStorage, refresh intervals, number formats, periods, history, rewards
messages.ymlEvery message and sound, the leaderboard GUI texts, the hologram, sign and NPC text
data.jsonScores, 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):

  1. In config.yml, set storage.type: sql and fill in storage.sql (host, port, database, username, password).
  2. 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​

  1. Stop the server.
  2. Replace the old jar in plugins/ with the new one.
  3. 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.