? Player Statistics Minecraft 插件
Player Statistics 是一款 Minecraft 服务器插件,用于跟踪和管理玩家统计数据,为普通玩家和服务器管理员提供实用的命令与功能。
✨ 功能特性
- ? 支持 MySQL 以实现数据的持久化存储
- ⚡ 提供查看和同步玩家统计数据的命令
- ? 自动追踪玩家的统计数据
- ? 配置简单且易于扩展
? 截图

? 快速开始
1. 安装
- 从 Releases 页面下载最新的编译版
.jar 文件。
- 将该
.jar 文件放入服务器的 plugins 目录中。
- 重启 Minecraft 服务器。
2. 配置
-
首次运行后,插件文件夹内会生成一个 config.yml 文件。
-
打开 config.yml 并根据需要更新 MySQL 数据库设置及其他选项:
mysql:
host: localhost
port: 3306
database: minecraft
username: root
password: yourpassword
-
保存文件并重启服务器以应用更改。
?️ 命令
| 命令 |
描述 |
权限节点 |
/stats |
查看你的统计数据 |
playerstatistics.stats |
/syncplayers |
将所有玩家数据同步至数据库 |
playerstatistics.sync |
/debugger |
调试插件操作(仅限管理员) |
playerstatistics.debug |
?️ 从源码构建
注意: 大多数用户无需从源码构建。如果你只是想使用该插件,请直接从 Releases 页面下载预编译的 .jar 文件。
-
确保已安装 Java 17+ 和 Maven。
-
克隆此仓库:
git clone https://github.com/yourusername/PlayerStatistics.git
cd PlayerStatistics
-
构建插件:
mvn clean compile
mvn clean package
-
编译后的 .jar 文件将位于 target/ 目录中。
? 贡献指南
欢迎贡献代码!如需参与贡献:
- Fork 本仓库并创建你的功能分支 (
git checkout -b feature/AmazingFeature)
- 提交你的更改 (
git commit -m 'Add some AmazingFeature')
- 推送到分支 (
git push origin feature/AmazingFeature)
- 发起 Pull Request
请遵循现有的代码风格,并包含清晰的提交信息。
? 技术支持
如遇问题或有功能建议,请在 GitHub 上提交 Issue。
? Player Statistics Minecraft Plugin
Player Statistics is a Minecraft server plugin that tracks and manages player statistics, providing useful commands and features for both players and server administrators.
✨ Features
- ? Integrates with MySQL for persistent data storage
- ⚡ Provides commands to view and sync player stats
- ? Tracks player statistics automatically
- ? Easy to configure and extend
? Screenshots

? Getting Started
1. Installation
- Download the latest compiled
.jar file from the Releases section.
- Place the
.jar file into your server's plugins directory.
- Restart your Minecraft server.
2. Configuration
-
After the first run, a config.yml file will be generated in the plugin's folder.
-
Open config.yml and update the MySQL database settings and other options as needed:
mysql:
host: localhost
port: 3306
database: minecraft
username: root
password: yourpassword
-
Save the file and restart the server to apply changes.
?️ Commands
| Command |
Description |
Permission |
/stats |
View your statistics |
playerstatistics.stats |
/syncplayers |
Sync all player data with database |
playerstatistics.sync |
/debugger |
Debug plugin operations (admin) |
playerstatistics.debug |
?️ Building from Source
Note: Most users do not need to build from source. Download the pre-built .jar from the releases if you just want to use the plugin.
-
Make sure you have Java 17+ and Maven installed.
-
Clone this repository:
git clone https://github.com/yourusername/PlayerStatistics.git
cd PlayerStatistics
-
Build the plugin:
mvn clean compile
mvn clean package
-
The compiled .jar will be in the target/ directory.
? Contributing
Contributions are welcome! To contribute:
- Fork this repository and create your feature branch (
git checkout -b feature/AmazingFeature)
- Commit your changes (
git commit -m 'Add some AmazingFeature')
- Push to the branch (
git push origin feature/AmazingFeature)
- Open a Pull Request
Please follow the existing code style and include clear commit messages.
? Support
For issues or feature requests, please open an issue on GitHub.
评论 0
登录后参与评分
还没有评论,来抢沙发吧