Server Leaderboard
Server-side player statistics leaderboard with customizable HUD panel
介绍
Server Leaderboard
Server-side player statistics leaderboard with a customizable client HUD panel and chat commands. Tracks playtime, deaths, mob kills, and PvP kills across all online and offline players without server tick lag.
What does this mod do?
Server Leaderboard aggregates vanilla player statistics from active sessions and saved stats/<uuid>.json files, calculates server-wide rankings, and displays them via a lightweight, glassmorphic HUD panel or in chat.
1. Two HUD Display Styles
The overlay supports two distinct visual layouts that can be toggled on the fly:
- Category View (Style 1): A compact card focusing on one active category at a time. Displays category name, page count (
1/4), ranks 1–10, and formatted values.


- Full Table View (Style 2): A comprehensive data matrix displaying player names and all enabled categories in side-by-side columns (
Player,⏱ Playtime,💀 Deaths,🗡 Mob Kills,⚔ PvP Kills). Cycling the sort key dynamically re-sorts the table and highlights the active column.
2. Rank Badges & Active Player Row
- Rank Badges: First place is marked with a gold ① badge, second place with a white ② badge, third place with bronze ③, and 4th+ with clean light gray numbers.
- Current Player Highlight: The viewing player’s row is highlighted with a cyan border accent and a soft background glow.
- Out-of-Top Pinning: If the viewing player is not in the top 10, a dedicated row is pinned at the bottom of the panel showing their exact server rank and personal score.
3. In-Game HUD Repositioning
Pressing the edit keybind enters an interactive positioning mode:
- Move the panel across a 9-point screen grid (top-left, top-center, top-right, center-left, center, center-right, bottom-left, bottom-center, bottom-right).
- Pulsating neon reticles frame the panel to indicate the active bounding box.
- Use arrow keys to reposition and press
EnterorEscto save.

4. Chat Commands
Players can check rankings directly in chat without opening the HUD:
/leaderboard time— Top players by total playtime./leaderboard deaths— Top players by death count./leaderboard mob_kills— Top players by mob kills./leaderboard player_kills— Top players by PvP kills./leaderboard style <1|2>— Switch HUD display mode directly from chat.
Chat entries display player rank badges, username, an online status indicator (●), and the formatted score.

Default Controls & Keybindings
All keybindings can be rebound in the standard Minecraft Controls menu (Options -> Controls -> Key Binds -> Server Leaderboard):
| Action | Default Key | Description |
|---|---|---|
| Toggle Leaderboard | ' (Apostrophe) |
Shows or hides the HUD leaderboard panel |
| Switch Category / Sort | Caps Lock |
Cycles active category in Style 1 or changes sort column in Style 2 |
| Toggle Style | [ (Left Bracket) |
Switches between Category View (1) and Table View (2) |
| Edit Position | ] (Right Bracket) |
Enters 9-point grid edit mode (use Arrow keys to move, Enter/Esc to confirm) |
Configuration
Client Settings (config/server_leaderboard-client.toml)
display_style(1–2, default1): Default HUD style (1 = Category card, 2 = Full table).position(1–9, default3): Default screen grid position (3 = top-right corner).
Server Settings (config/server_leaderboard-server.toml)
enabled_categories(default:["play_time", "deaths", "mob_kills", "player_kills"]): List and display order of active tracking categories.hud_player_limit(1–20, default10): Maximum number of top players shown on the HUD overlay.command_player_limit(1–50, default10): Maximum number of players printed by/leaderboardchat commands.
Server Performance & Caching
Calculating server-wide rankings across hundreds of player files can introduce disk I/O bottlenecks. Server Leaderboard implements a dedicated thread-safe caching architecture:
- 30-Second Cache TTL: Online player statistics are read into memory and cached for 30 seconds (
ConcurrentHashMap), eliminating up to 90% of disk read overhead. - Non-Blocking Background Updates: Offline player files are loaded without stalling the main server tick.
- Smart Invalidation: Player cache entries automatically invalidate upon player connect and disconnect to keep rankings current.
常见问题
Server Leaderboard 支持哪些 Minecraft 版本?
Server Leaderboard 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。
Server Leaderboard 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
ringoway 的其他作品
查看全部 →Apotheosis Balance Configurator
通过简单的配置文件调整 Apotheosis 平衡,无需编辑 JSON!
Resonant Synthesis [Deeper and Darker]
为《Deeper and Darker》添加全新的进度、护甲和饰品。
Mediumcore Fix
修复 MediumCore 模组的一个问题及相关漏洞。
Eternal Hunts [Cataclysm & Mowzie’s Mobs & Born in Chaos]
为 Cataclysm、Mowzie's Mobs、Born in Chaos 和 FDBosses 添加跨模组联动。击败 Boss 获取灵魂水晶,锻造灵魂合金并制作召唤器。
评论
登录后评论和评分