DooBStat
简单的玩家统计插件。
该插件收集有关玩家连接/断开连接以及在服务器上花费时间的信息。
此插件的另一个功能是移除长期未登录的玩家(即 player.dat 文件)。这可以自动完成,也可以通过执行相应命令手动完成。
这是一个仅支持 MySQL 的插件。
收集的信息:
- 玩家名称
- 最后已知的玩家 IP
- 在线/离线状态
- 首次登录日期和时间
- 最后登录日期和时间
- 登录次数。
- 本次登录日期和时间 - 如果玩家仍处于在线状态,“最后登录”指的是其上一次登录时间,而“本次登录”则是当前时间。
- 最后登出日期和时间
- 在服务器上停留的时间(以秒为单位)。
- 移动距离(以米/方块为单位)
- 步行
- 飞行时
- 游泳时
- 骑猪时
- 乘坐矿车时
- 乘船时
- 骑马时
- 捕获的鱼的数量
- 使用的床的数量
- 放置的方块数量
- 破坏的方块数量
- 死亡次数
- PVP 中的死亡次数
- 最后击杀者的名字
- PVP 中的击杀数
- 最后受害者的名字
安装方法:
- 从 文件页面 下载插件,将 .jar 文件放入你的 plugins 文件夹中
- 运行一次服务器以生成配置文件,然后关闭服务器
- 打开 config.yml 文件并进行编辑
- mysql 部分 - 填写你的数据库名称、用户名、密码等。
- clean 部分 - 详细描述请查看 清理 页面。
- debug - true/false(默认 false)- 显示调试信息。在生产服务器上不应启用此功能。
- checkVersion - true/false(默认 true)- 检查是否有新版本可用,并在控制台中显示相关信息。
- pluginStats - true/false(默认 true)- 向作者网站发送关于插件使用情况的信息。发送的内容包括:服务器 IP、端口、服务器名称以及本插件版本。收集的数据不会公开,仅作为匿名统计数据展示。
- dbversion - 不要更改此项(仅供内部使用)。
- 要显示收集的信息,你需要为你的服务器网站编写扩展程序,或使用下一节中描述的 example.php 文件
如何显示这些信息?
在附带的 "extras" 目录中(你必须解压插件的 *.jar 文件,或者 访问源代码),有一个 example.php 文件,它展示了如何使用收集的数据来显示简单的玩家列表。 (使用前,你必须编辑 example.php 并填写数据库名称、用户名、密码等信息。)
我的测试服务器的截图:

源码:
GitHub
抱歉,我的英语不是母语。
如果你发现描述中有错误,请给我发私信。
DooBStat
Simple player statistics plugin.
Plugin collects information about connects/disconnects and time spent by players on your server.
Another function of this plugin is to remove long-absent players (with player.dat files). This can be done automatically or manually by issuing the appropriate command.
This is MySQL only plugin.
Collected informations:
- player name
- last known player IP
- online/offline status
- first login date and time
- last login date and time
- number of logins.
- this login date and time - if player is still online "last login" is his previous login date and "this login" is actual.
- last logout date and time
- time spend on the server in seconds.
- distance traveled (in meters/blocks)
- by foot
- when flying
- when swimming
- on pig
- on minecart
- on boat
- on horse
- number of fish caught
- number of beds used
- number of placed blocks
- number of destroyed blocks
- number of deaths
- number of deaths in PVP
- name of last killer
- number of kills in PVP
- name of last victim
Installation:
- Download the plugin from the files page, put the .jar in your plugins folder
- Run the server once for the config file to be created and then shut it down again
- Open the config.yml file and edit it
- mysql section of config - write your database name, user, password, etc.
- clean section of config - for extended description check Cleaning page.
- debug - true/false (default false) - show debug information. It should not be used in production server.
- checkVersion - true/false (default true) - Checks if new version of this plugin is available and shows information in console.
- pluginStats - true/false (default true) - Send information to the author's website about plugin usage. What is send: server ip, server port, server name and this plugin version. Collected data are not publicly available, and will be shown only as anonymous statistics.
- dbversion - do not change this (it is for internal use).
- To display collected information you must write extension for your server website, or use example.php file described in next section
How to display this informations?
In attached "extras" directory (you must unzip plugin *.jar file, or you can go to source), there is a file example.php it shows how to use collected data to display simple player list. (before use you must edit example.php and fill database name, user, password etc.)
Screenshot from my test server:

Source:
GitHub
Sorry for my english it is not my native language.
If you spot something wrong in this description please send me pm.
下载 DooBStat
下载 DooBStat
下载 DooBStat
下载 DooBStat
下载 DooBStat
下载 DooBStat
下载 DooBStat
下载 DooBStat
v0.6.0
- 骑马移动距离现在使用正确的 API。
- 修复了服务器崩溃后“始终在线玩家”的 Bug。
- 添加了方块破坏和方块放置的统计。
- 重新设计了数据存储方法。
- 监听器已移至独立目录。
- 新增统计项:死亡计数、PvP 死亡计数及最后击杀者名称、PvP 击杀计数及最后受害者名称。
编译版本:CraftBukkit #2826 1.6.2-R0.1
v0.5.2
- 修复了玩家骑乘马匹时出现的错误。
- 新增 - 骑马移动距离
编译版本:CraftBukkit #2805 1.6.1-R0.1
v0.5.1
- 紧急修复。创建新数据库表时出现 MySQL 错误。此问题不影响从上一版本的升级。
v0.5.0
- 本版本中数据库结构已更改,部分字段已从 [prefix]players 表移至 [prefix]morestats 表。数据库结构说明。
- 修复了插件重载时出现的 SQL 错误 Bug
- 更新了 example.php(适配新的数据库结构)
v0.4.0
- 新增更多统计数据的保存功能
- 步行移动距离
- 飞行移动距离
- 游泳移动距离
- 在猪、矿车和船上的移动距离
- 钓鱼数量
- 使用床的次数
- 改进了 example.php
- 新增命令 /dstat cleandat
此命令允许删除数据库中不存在的玩家的旧 player.dat 文件 - 插件统计中加入了 Motd
v0.3.2
- 紧急修复。更新检查器会显示有新版本的提示,无论该提示是否属实。
- 玩家最后一次已知的 IP 地址已存储在统计表中。
从之前的版本升级时需要完全重启服务器!
更新前请务必备份您的数据!!!
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧