跳到正文

StatsWebUI

作者:borrageiros

为你的 Minecraft 服务器提供实时竞技排名网页界面

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

⛏️ mc-stats-webui

Live competitive rankings for your Minecraft survival server.

A Fabric server mod that embeds a small web UI + API. Players open it in a browser — no client mod needed.

Ranking home screenshot

MORE SCREENSHOTS

✨ Features

  • 🏆 Home podium with Champion, Most dedicated, and Most efficient crowns
  • 📋 Player profiles with skins, grades, and full vanilla stats
  • 🆚 Side-by-side player compare
  • 📊 Leaderboards for the whole vanilla stats catalog (custom, mined, killed, …)
  • 🧮 Transparent scoring (“How we rank”) — farms inflate some boards on purpose
  • 🌐 UI in English / Español / Français · light / dark / system theme
  • 🏷️ Branding via config/mc-stats-webui.json (title, slogan, tagline, window title, bind, port)
  • ⚡ In-memory stats cache (see below)

🧠 Stats cache

On world start the mod loads every player stats file into RAM. The API serves that snapshot — it does not re-scan the disk on each request.

When a connected player gains stats, their UUID is marked dirty. Every ~15 s (and before each API snapshot) dirty players are flushed with vanilla save(), then that one entry is reloaded into the cache. Offline players drop out of the dirty set and reload from disk if needed.

URL What
http://localhost:25580/ Web UI
http://localhost:25580/api/players JSON API

More detail: endpoints · stats & champion

🛠️ Development

Needs: Java 25 · Node 24+ · Yarn via Corepack · Fabric 26.2

cd web
corepack yarn install
corepack yarn dev

UI: http://localhost:5173 (proxies /api → 25580)

./gradlew build

The SvelteKit UI is built static and shipped inside the JAR.

常见问题

StatsWebUI 支持哪些 Minecraft 版本?

StatsWebUI 支持 Minecraft Java 版 26.2–26.3,共 2 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

StatsWebUI 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分