PlayersStats
PlayersStats 是一款专为 Paper Minecraft 服务器 设计的轻量级玩家统计插件。
它会自动追踪玩家活动,并将统计数据存储在 MySQL/MariaDB 数据库 中,适用于网站、仪表盘、排行榜、玩家资料页以及其他外部服务。
追踪的统计数据
PlayersStats 可以追踪:
- 游戏时长
- 移动距离
- 死亡次数
- 玩家击杀数
- 生物击杀数
- 破坏方块数
- 放置方块数
- 合成物品数
- 聊天消息数
- 使用的命令数
- 造成的伤害量
- 受到的伤害量
- 玩家连接与会话记录
- 在线/离线状态
每项统计数据均可在配置文件中单独启用或禁用。
MySQL / MariaDB
玩家统计数据直接存储在 MySQL/MariaDB 数据库中。
数据库连接可通过以下文件进行配置:
plugins/PlayersStats/config.yml
你可以配置:
- 数据库主机地址
- 端口
- 数据库名称
- 用户名和密码
- SSL 设置
- 连接超时时间
- Socket 超时时间
- 统计数据表名
- 会话表名
- 同步间隔
PlayersStats 会将统计数据保留在内存中,并定期与数据库同步,以减少不必要的数据库查询。
配置
PlayersStats 提供了一个简单的 YAML 配置文件。
你可以自定义:
- 追踪间隔
- 数据库同步频率
- 传送检测距离
- 各项统计数据开关
- 插件消息
- 调试日志
要求
- Minecraft 1.21.11
- Paper
- Java 21
- MySQL 或 MariaDB 数据库
安装
- 下载 PlayersStats。
- 将
.jar 文件放入服务器的 plugins 文件夹中。
- 启动服务器。
- 打开
plugins/PlayersStats/config.yml。
- 配置你的 MySQL/MariaDB 连接信息。
- 重启服务器。
PlayersStats 将自动初始化所需的数据库表。
命令
主命令:
/playersstats
别名:
/pstats
管理权限:
playersstats.admin
隐私保护
PlayersStats 不会将玩家统计数据发送到任何外部服务。
所有收集的数据仅存储由服务器管理员配置的 MySQL/MariaDB 数据库中。
PlayersStats
PlayersStats is a lightweight player statistics plugin for Paper Minecraft servers.
It automatically tracks player activity and stores statistics in a MySQL/MariaDB database, making it useful for websites, dashboards, leaderboards, player profiles, and other external services.
Tracked Statistics
PlayersStats can track:
- Playtime
- Distance travelled
- Deaths
- Player kills
- Mob kills
- Blocks broken
- Blocks placed
- Items crafted
- Chat messages
- Commands used
- Damage dealt
- Damage taken
- Player connections and sessions
- Online/offline status
Each statistic can be individually enabled or disabled in the configuration.
MySQL / MariaDB
Player statistics are stored directly in a MySQL/MariaDB database.
The database connection is configurable through:
plugins/PlayersStats/config.yml
You can configure:
- Database host
- Port
- Database name
- Username and password
- SSL
- Connection timeout
- Socket timeout
- Statistics table name
- Sessions table name
- Synchronization interval
PlayersStats keeps statistics in memory and periodically synchronizes them with the database to reduce unnecessary database queries.
Configuration
PlayersStats provides a simple YAML configuration file.
You can customize:
- Tracking interval
- Database synchronization frequency
- Teleport detection distance
- Individual statistics
- Plugin messages
- Debug logging
Requirements
- Minecraft 1.21.11
- Paper
- Java 21
- MySQL or MariaDB database
Installation
- Download PlayersStats.
- Place the
.jar file inside your server's plugins folder.
- Start the server.
- Open
plugins/PlayersStats/config.yml.
- Configure your MySQL/MariaDB connection.
- Restart the server.
PlayersStats will automatically initialize the required database tables.
Commands
Main command:
/playersstats
Alias:
/pstats
Administrative permission:
playersstats.admin
Privacy
PlayersStats does not send player statistics to an external service.
All collected data is stored only in the MySQL/MariaDB database configured by the server administrator.
评论 0
登录后参与评分
还没有评论,来抢沙发吧