StatsPlugin
一款专为 Paper 服务器打造的现代、美观的统计插件:提供简洁的 GUI、带有每日 / 每周 / 每月排名的服务器排行榜、玩家对比功能、PlaceholderAPI 支持以及9 种语言——零配置即可使用。
需要 Paper 1.21+(或 Purpur / Pufferfish 等 Paper 分支)和 Java 21。不支持 Spigot。
特性
- 统计 GUI:包含分类标签页(概览、战斗、世界、旅行、经济),显示每位玩家在各项统计中的服务器排名以及“今日”新增数值
- 22 项统计:在线时长、登录次数、跳跃次数、睡眠夜晚数、玩家击杀数、死亡次数、生物击杀数、放置/破坏方块数、钓鱼数量、动物繁殖数、村民交易数、附魔物品数、总距离/步行距离/疾跑距离/游泳距离/鞘翅飞行距离/乘坐移动距离、余额、赚取/花费金钱
- 排行榜:涵盖所有统计项,支持历史累计 / 今日 / 本周 / 本月查看,分页显示(最多 100 名玩家)并显示你自己的排名
- 玩家对比:
/stats compare <player> 展示双方在所有统计项上的胜负情况
- 即时启动:首次启动时自动导入现有玩家数据,确保排行榜永不空白
- 隐私保护:
/stats toggle 可隐藏你的统计数据,使其对其他玩家和排行榜不可见
- PlaceholderAPI:支持排行榜名称/数值、排名以及按时间段划分的数值,可用于全息图和计分板
- Vault 支持:用于获取余额及赚取/花费的金钱(兼容任意加载顺序的经济插件)
- 9 种语言:English, 日本語, 简体中文, Español, Deutsch, Français, Português (BR), Русский, 한국어 —— 全部可编辑
- 快速轻量:统计数据缓存在内存中,并在后台线程中以批量方式写入 SQLite
- 控制台友好:支持从控制台执行
/stats top 和 /stats info <player>
- 为管理员提供来自 Modrinth 的更新通知(可禁用)
命令
| 命令 |
描述 |
权限 |
/stats |
打开你的统计面板 |
statsplugin.use |
/stats <player> |
查看其他玩家的统计 |
statsplugin.others |
/stats top [stat] [period] |
打开排行榜(时间段:all, daily, weekly, monthly) |
statsplugin.top |
/stats compare <player> |
与某位玩家进行统计对比 |
statsplugin.compare |
/stats info [player] |
在聊天栏显示统计摘要 |
statsplugin.use |
/stats toggle |
隐藏或显示你的统计数据 |
statsplugin.hide |
/stats reload |
重新加载配置文件和语言文件 |
statsplugin.reload |
/stats import |
重新导入现有玩家数据 |
statsplugin.admin |
/stats reset <player> |
从数据库中移除一名玩家 |
statsplugin.admin |
其他权限:statsplugin.bypass(查看被隐藏的统计)、statsplugin.update(更新通知)、statsplugin.*(所有权限)。
默认情况下,玩家拥有 use、others、top、compare 和 hide 权限。
PlaceholderAPI
统计键名:playtime, joins, jumps, sleeps, kills, deaths, mob-kills, blocks-placed, blocks-broken, fish-caught, animals-bred, trades, enchants, distance, distance-walked, distance-sprinted, distance-swum, distance-elytra, distance-ridden, balance, money-earned, money-spent
| 占位符 |
结果 |
%statsplugin_kills% |
格式化后的数值(例如 1,250, 3d 4h 12m, 12.50 km) |
%statsplugin_kills_raw% |
原始数值 |
%statsplugin_kills_weekly% |
本周增益值(daily, weekly, monthly 同样适用) |
%statsplugin_rank_kills% |
服务器排名(%statsplugin_rank_kills_weekly% 可查看特定时间段的排名) |
%statsplugin_top_kills_1_name% |
排名第一的玩家名称 |
%statsplugin_top_kills_1_value% |
排名第一的玩家数值 |
%statsplugin_top_kills_weekly_3_name% |
本周排名第三的玩家名称 |
%statsplugin_kdr% |
击杀/死亡比 |
%statsplugin_firstjoin% / %statsplugin_lastseen% |
日期 |
配置
plugins/StatsPlugin/config.yml 允许你选择语言、同步间隔、排行榜大小、GUI 音效、创造模式下的方块追踪等功能。
要更改语言,请设置 language:(例如 ja, zh_CN, es)并运行 /stats reload。语言文件位于 plugins/StatsPlugin/lang/ 目录下。
注意事项
- 放置/破坏方块、登录次数以及赚取/花费的金钱由插件在安装后开始追踪。其他所有数据均来自 Minecraft 自身的统计系统,因此现有进度立即可用。
- 周期性排行榜(今日/本周/本月)从插件安装那一刻开始填充数据。
- 从 1.x/2.x 版本升级会保留现有的数据库。
StatsPlugin
A modern, beautiful stats plugin for Paper servers: a clean GUI, server leaderboards with daily / weekly / monthly rankings, player comparison, PlaceholderAPI support and 9 languages — with zero setup.
Requires Paper 1.21+ (or a Paper fork such as Purpur / Pufferfish) and Java 21. Spigot is not supported.
Features
- Stats GUI with category tabs (Overview, Combat, World, Travel, Economy), server rank on every stat and "today" gains
- 22 stats: playtime, logins, jumps, nights slept, player kills, deaths, mob kills, blocks placed/broken, fish caught, animals bred, villager trades, items enchanted, total/walked/sprinted/swum/elytra/ridden distance, balance, money earned/spent
- Leaderboards for every stat with All time / Today / This week / This month, paging (up to 100 players) and your own rank
- Player comparison:
/stats compare <player> shows who wins every stat
- Instant start: existing players are imported automatically on first launch, so leaderboards are never empty
- Privacy:
/stats toggle hides your stats from other players and the leaderboards
- PlaceholderAPI: leaderboard names/values, ranks and per-period values for holograms and scoreboards
- Vault support for balance and money earned/spent (works with whichever economy plugin loads, in any order)
- 9 languages: English, 日本語, 简体中文, Español, Deutsch, Français, Português (BR), Русский, 한국어 — all editable
- Fast and light: stats are cached in memory and written to SQLite in batches off the main thread
- Console friendly:
/stats top, /stats info <player> work from the console
- Update notifications from Modrinth for operators (can be disabled)
Commands
| Command |
Description |
Permission |
/stats |
Open your stats |
statsplugin.use |
/stats <player> |
View another player's stats |
statsplugin.others |
/stats top [stat] [period] |
Open the leaderboards (periods: all, daily, weekly, monthly) |
statsplugin.top |
/stats compare <player> |
Compare your stats with a player |
statsplugin.compare |
/stats info [player] |
Show a stats summary in chat |
statsplugin.use |
/stats toggle |
Hide or show your stats |
statsplugin.hide |
/stats reload |
Reload config and language files |
statsplugin.reload |
/stats import |
Re-import existing players |
statsplugin.admin |
/stats reset <player> |
Remove a player from the database |
statsplugin.admin |
Other permissions: statsplugin.bypass (view hidden stats), statsplugin.update (update notifications), statsplugin.* (everything).
Players get use, others, top, compare and hide by default.
PlaceholderAPI
Stat keys: playtime, joins, jumps, sleeps, kills, deaths, mob-kills, blocks-placed, blocks-broken, fish-caught, animals-bred, trades, enchants, distance, distance-walked, distance-sprinted, distance-swum, distance-elytra, distance-ridden, balance, money-earned, money-spent
| Placeholder |
Result |
%statsplugin_kills% |
Formatted value (e.g. 1,250, 3d 4h 12m, 12.50 km) |
%statsplugin_kills_raw% |
Raw number |
%statsplugin_kills_weekly% |
Gain this week (daily, weekly, monthly also work) |
%statsplugin_rank_kills% |
Server rank (%statsplugin_rank_kills_weekly% for a period) |
%statsplugin_top_kills_1_name% |
Name of the #1 player |
%statsplugin_top_kills_1_value% |
Value of the #1 player |
%statsplugin_top_kills_weekly_3_name% |
Name of the #3 player this week |
%statsplugin_kdr% |
Kill/death ratio |
%statsplugin_firstjoin% / %statsplugin_lastseen% |
Dates |
Configuration
plugins/StatsPlugin/config.yml lets you choose the language, sync interval, leaderboard size, GUI sounds, creative-mode block tracking and more.
To change a language, set language: (for example ja, zh_CN, es) and run /stats reload. Language files live in plugins/StatsPlugin/lang/.
Notes
- Blocks placed/broken, logins and money earned/spent are tracked by the plugin from the moment it is installed. Everything else comes from Minecraft's own statistics, so existing progress is available immediately.
- Period leaderboards (today / week / month) start filling from the moment the plugin is installed.
- Upgrading from 1.x/2.x keeps your existing database.
评论 0
登录后参与评分
还没有评论,来抢沙发吧