在 Minecraft 服务器上记录各种游戏统计数据,以便更好地追踪玩家的活动。这些数据会记录到 MySQL 数据库中,并可用于其他用途,例如查找破坏行为的来源、为完成任务的玩家发放奖励、构建玩家档案,或用于任何您自行决定的目的。网络中的多个服务器可以共享同一个数据库。
本插件不包含可视化界面工具,这部分由服务器管理员自行决定。
该插件的开发源于对其他插件不再更新或提供不准确结果日益增长的 frustration(挫败感)。
基本表格式
uuid: 玩家的唯一 ID
amount: 完成此任务的次数
world: 行动发生的服务器世界名称,自动从服务器读取。
表中添加了额外字段以记录相关数据,而其他一些字段则采用不同的格式。
例如,更复杂的 stats_io_deaths 表:
source: 死亡来源(玩家或实体)
target: 死亡目标(玩家或实体)
world: 行动发生的世界
cause: 死亡原因(使用的武器或物品)
weapon_name: 武器的自定义名称(如果已设置)
amount: 符合上述所有条件的死亡次数
player_source: 如果玩家是造成死亡的原因
player_target: 如果是玩家死亡
stats_io_maxes 的格式略有不同:它将存储每个玩家的各项统计数据的最大值。
数据库表和跟踪值
所有表名均以 stats_io_ 为前缀,以避免与其他插件产生命名冲突。
arrows
beds_entered
blocks_broken
blocks_placed
buckets_emptied
buckets_filled
change_world
chat_words
commands
consumed
crafted
damage
deaths
eggs_thrown
enchants
enderpearls
fish_caught
heals
hunger_refills
inventories
item_broken
item_dropped
item_picked_up
joins
kicks
lighters
maxes
milk
move
pvp_streak
shears
splashes
tamings
teleports
trades
xp_gained
安装
- 下载插件并将其放置在 plugins/ 目录中。
- 启动并停止服务器以生成配置文件。
- 使用您的 MySQL 数据库信息编辑 config.yml。
- 启动服务器。一分钟后,MySQL 表将开始接收数据。
配置
database.host: 数据库主机地址
database.port: 数据库端口
database.base: 数据库名称
database.username: 数据库用户名
database.password: 数据库密码
命令
givehead PLAYER: 获取指定玩家的头颅
权限
iobattlestats.track: 添加至任何玩家或群组以启用日志记录
iobattlestats.givehead: 确定谁可以使用 /givehead 命令
为什么这个插件可靠?
我在自己的服务器上使用了所有的插件,我喜欢我的插件保持稳定、可靠且低维护。版本升级时出现崩溃的情况是不预期的,但如果真的发生了,将会迅速修复。
支持我的工作
如果您喜欢我的工作,我 欢迎赞助商! 自 2011 年以来我一直在运营 Minecraft 服务器,为服务器管理员开发了多种插件和工具,现在正逐步发布其中许多内容。您的支持将极大地鼓励我投入更多时间和精力于此,并及时修复随时间推移可能发现的问题!

Record various gameplay stats on a Minecraft server to better track the activity of the players. This is logged to a MySQL database and can then be used for other purposes like finding sources of griefing, grant rewards for completing tasks, build player profiles, or anything of your choosing. Multiple servers on a network can share the same database.
No visualisation tools are included, this is left up to the server owner.
This plugin was developed out of a growing frustration from other plugins no longer getting updated, or giving inaccurate results.
Basic table format
uuid: The player's unique ID
amount: The amount of times this task was completed
world: The name of the world the action took place in, automatically read from the server.
Additional fields are added on the tables to record relevant data, while some others have a different format.
For example, the more complex stats_io_deaths:
source: the source of the death (player or entity)
target: the target of the death (player or entity)
world: the world where the action took place
cause: the cause of the death (which weapon or item)
weapon_name: the weapon's custom name, if set
amount: the amount of deaths matching all of the above
player_source: if the player was the cause of the death
player_target: if it was a player that died
stats_io_maxes has a slightly different format: it will store the maximum value of various stats for each player.
Database tables and tracked values
All table names are prefixed with stats_io_ to avoid naming conflicts with other plugins.
arrows
beds_entered
blocks_broken
blocks_placed
buckets_emptied
buckets_filled
change_world
chat_words
commands
consumed
crafted
damage
deaths
eggs_thrown
enchants
enderpearls
fish_caught
heals
hunger_refills
inventories
item_broken
item_dropped
item_picked_up
joins
kicks
lighters
maxes
milk
move
pvp_streak
shears
splashes
tamings
teleports
trades
xp_gained
Installation
- Download the plugin and place it in your plugins/ directory.
- Start and stop the server to generate the configuration file.
- Edit config.yml with your MySQL database information.
- Start your server. After a minute, the MySQL table will start getting results.
Configuration
database.host: Database host
database.port: Database port
database.base: Database name
database.username: Database username
database.password: Database password
Commands
givehead PLAYER: Obtain the skull of the specified player
Permissions
iobattlestats.track: Add to any player or group to be logged
iobattlestats.givehead: Determine who is allowed to use the /givehead command
Why is this plugin reliable?
I use all of my plugins on my own servers, and I like my plugins to be stable, reliable and low maintenance. Breaks on version upgrades are not expected, but should they happen, they will be quickly fixed.
Support my work
If you enjoy my work, I welcome sponsors! I've been running Minecraft servers since 2011, developed several plugins and tools for server owners, and I'm now working my way through releasing many of them. Your support would go a long way toward encouraging me to put more time and effort into this, plus fix any issues that might be discovered over time!

评论 0
登录后参与评分
还没有评论,来抢沙发吧