PlayerStats
PlayerStats 是一款轻量级插件,可自动记录服务器上玩家的重要活动。它捕获移动、交互、战斗、物品使用等数据,提供清晰可靠的统计信息,同时保持服务器的轻量化。所有数据均存储在本地 SQLite 数据库中。
该插件会在首次使用时导入现有的玩家统计数据。
注意: 并非所有统计数据都能被导入。某些统计可能缺失且无法导入。
功能
- 行走、疾跑和潜行的距离
- 导入所有可用的玩家数据,包括安装插件之前的数据
- 跳跃次数
- 破坏和放置的方块总数
- 按材料细分的破坏和放置方块数
- 物品和方块的交互频率
- 每位玩家的总游戏时间
- 死亡次数和加入次数
- 按类型划分的实体击杀数
- 制作的物品
- 丢弃的物品
- 拾取的物品
- 高效的缓存机制与异步刷新,以最小化服务器负载
- 仅管理员可查看其他玩家的统计信息,所有玩家均可查看自己的统计信息
- 在插件数据文件夹中自动设置 SQLite 数据库
命令
-
/playerstats
显示您的个人摘要
(权限:playerstats.view.self,默认值:true)
-
/playerstats <player>
显示另一位玩家的摘要(在线或拥有存储数据的离线玩家)
(权限:playerstats.view.other,默认值:op)
-
/playerstats <player> <detail>
显示某个类别的详细统计信息。支持以下类别:
movement(移动)、blocks_broken(blocks_destroyed,破坏方块)、blocks_placed(放置方块)、
interactions(交互)、combat(战斗)、crafting(crafted,制作)、drops(dropped,丢弃)、
pickups(picked_up、collected,拾取)、playtime(游戏时间)、totals(总计)
(当查看他人数据时,需要权限:playerstats.view.other)
-
/ps
/playerstats 的别名
-
/playerstats:help
显示帮助页面
-
/pshelp
帮助命令的别名
数据库
PlayerStats 使用本地 SQLite 数据库(默认为 playerstats.db)。
- 数据库设置会自动在插件文件夹中完成
- 通过 UUID 追踪玩家,自动处理名称更改
安装
- 下载最新版本
- 将 jar 文件放入 Paper 服务器的 plugins 文件夹中
- 启动或重启服务器
PlayerStats
PlayerStats is a lightweight plugin that automatically records important player activity on your server. It captures movement, interactions, combat, item usage, and more, giving you clear and reliable statistics while keeping the server lightweight. All data is stored locally in a SQLite database.
The plugin also imports existing player statistics on first use.
Note: Not all stats can be imported. Some stats may be missing and cannot be imported.
Features
- Walked, sprinted, and sneaked distances
- Imports all available player data, even from before the plugin was installed
- Jump counts
- Total blocks broken and placed
- Per-material breakdown for blocks broken and placed
- Item and block interaction frequencies
- Total playtime per player
- Death count and join count
- Entity kills per type
- Items crafted
- Items dropped
- Items picked up
- Efficient caching with asynchronous flushes to minimize server load
- Operator-only access to other players' stats, everyone can view their own
- Automatic SQLite setup in plugin data folder
Commands
-
/playerstats
Shows your personal summary
(permission: playerstats.view.self default: true)
-
/playerstats <player>
Shows another player's summary (online or offline with stored data)
(permission: playerstats.view.other default: op)
-
/playerstats <player> <detail>
Shows detailed stats for one category. Supported:
movement, blocks_broken (blocks_destroyed), blocks_placed,
interactions, combat, crafting (crafted), drops (dropped),
pickups (picked_up, collected), playtime, totals
(permission: playerstats.view.other when targeting someone else)
-
/ps
Alias for /playerstats
-
/playerstats:help
Shows the help page
-
/pshelp
Alias for help command
Database
PlayerStats uses a local SQLite database (playerstats.db by default).
- Database setup is automatic in the plugin folder
- Tracks players by UUID, name changes handled automatically
Installation
- Download the latest release
- Drop the jar into your Paper server's plugins folder
- Start or restart the server
评论 0
登录后参与评分
还没有评论,来抢沙发吧