Leaderboard

Leaderboard

Create leaderboards for any data

by
1.1K Downloads
fabricgame-mechanicslibraryutility
Rent Server with this Mod

About this Mod

Mitra Leaderboards

A flexible and high-performance leaderboard system for Fabric servers. It computes and publishes leaderboards from placeholders (e.g. blocks mined, play time, kills, etc.), with optional MongoDB support to store and display offline players.


✨ Features

  • Multiple leaderboards: define as many holders as you want (e.g. blocks_mined, time_played, kills…).
  • Native placeholders (pb4/Patbox): exposes values for TAB, HUDs, holograms, or any plugin/mod that reads placeholders.
  • Per-holder update scheduling (configurable in seconds).
  • Online or offline mode:
    • Online-only: TOP is computed with currently connected players (no DB).
    • Offline tracking: saves and queries from MongoDB for global TOPs.
  • Asynchronous execution: safe capture on the server thread, heavy work in async workers.
  • Optimized for thousands of players: efficient TOP-K selection, minimal I/O and CPU.
  • Robust placeholder evaluation: cleans values and prevents crashes if a placeholder fails.

✅ Requirements

  • Fabric Loader + Fabric API (server).
  • pb4 Placeholders (Patbox) for placeholder resolution/registration.
  • MongoDB (requerid)

📦 Installation

  1. Download Mitra Leaderboards and its requirements.
  2. Place the .jar files in the mods/ folder of the server (and client if you want HUDs).
  3. Start the server to generate the config folders.
  4. Configure leaderboard.yml (and mongo.yml if you plan to use offline tracking).
  5. Restart.

⚙️ Configuration

leaderboard.yml

holders:
  blocks_mined:
    valueCheck: "%mitra:mined_total%"
    update: 20
    top: 10
    trackOffline: false

  time_played:
    valueCheck: "%mitra:play_time%"
    update: 30
    top: 15
    trackOffline: true

🧩 Placeholders

For a holder named blocks_mined:


📏 Size and timers

  • %mitra:leaderboard blocks_mined_size% → number of entries.
  • %mitra:leaderboard blocks_mined_update_in_s% → seconds until the next update.
  • %mitra:leaderboard blocks_mined_update_in_hms% → remaining time in HH:MM:SS.

🏆 TOP by position (N ≥ 1)

  • %mitra:leaderboard blocks_mined_value_N% → numeric value.

  • %mitra:leaderboard blocks_mined_player_N% → player name.

  • %mitra:leaderboard blocks_mined_uuid_N% → player UUID.

  • #1 %mitra:leaderboard blocks_mined_player_1% — %mitra:leaderboard blocks_mined_value_1%

  • #2 %mitra:leaderboard blocks_mined_player_2% — %mitra:leaderboard blocks_mined_value_2%

  • #3 %mitra:leaderboard blocks_mined_player_3% — %mitra:leaderboard blocks_mined_value_3%


📜 Commands

(Base command may differ depending on your setup; examples use /lb)

  • /lb reload
    Reloads the leaderboard.yml configuration and reschedules all tasks.
    Useful when you change values in the config without restarting the server.

  • /lb recompute <holder>
    Forces an immediate recompute of the specified holder.
    Example: /lb recompute blocks_mined will update the ranking for the blocks_mined leaderboard instantly.

  • /lb list
    Displays a list of all currently active holders.
    Example output:


👨‍💻 Authors & Credits

  • Developer: srmast3r_ (SrMaster)
  • Twitter/X: @SrMaster
  • Credits: pb4 Placeholders by Patbox

Available Versions

Leaderboard 2.0.0release
MC 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9fabric
October 6, 2025
Leaderboard 1.0-SNAPSHOTrelease
MC 1.21.1fabric
September 25, 2025
Leaderboard 1.0-SNAPSHOTrelease
MC 1.21.1fabric
September 15, 2025
Leaderboard 1.0-SNAPSHOTrelease
MC 1.21.1fabric
September 10, 2025

How to Install Leaderboard on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.9).

3

Install Mod

Open the mod browser in the dashboard and search for "Leaderboard". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabric

Minecraft Versions

1.21.9, 1.21.8, 1.21.7 (+6 more)

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Leaderboard server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.9). You can switch loaders with one click in the panel.

Is Leaderboard compatible with fabric?

Leaderboard officially supports fabric for Minecraft 1.21.9, 1.21.8, 1.21.7. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Leaderboard – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Leaderboard consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Leaderboard with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
LicenseRef-All-Rights-Reserved
Server-side
Required

Supported Versions

1.21.91.21.81.21.71.21.61.21.51.21.41.21.31.21.21.21.1