Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Tags
Creators
Details
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
- Download Mitra Leaderboards and its requirements.
- Place the
.jarfiles in themods/folder of the server (and client if you want HUDs). - Start the server to generate the config folders.
- Configure
leaderboard.yml(andmongo.ymlif you plan to use offline tracking). - 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 inHH: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 theleaderboard.ymlconfiguration 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_minedwill update the ranking for theblocks_minedleaderboard instantly. -
/lb list
Displays a list of all currently active holders.
Example output:


