Netstats 是一款插件,它会监控每位玩家的活动并将其保存到各自的统计文件中,同时运行一个内部服务器,供网页客户端查询玩家统计数据。
更新日期:2012年2月10日
v5.0.4 已发布!网页客户端即将推出。
功能特性
- 监控玩家的在线/离线状态
- 记录他们上次登录服务器的时间
- 追踪玩家累计在线时长
- 追踪玩家最后使用的 IP 地址
- 追踪被破坏的方块数量
- 追踪被放置的方块数量
- 追踪玩家死亡次数
- 追踪玩家移动的总距离
- 追踪击杀的生物数量
- 追踪击杀其他玩家的数量
- 追踪玩家首次加入服务器的时间(自安装 Netstats 起)。
- 自动生成/更新配置文件
- 追踪控制(您可以选择需要追踪的项目)
- 支持多世界
- 支持热重载
- 支持任何可通过 HTTP POST 发送 JSON 的语言
- 100% 符合 Java 标准
命令
<> = 必填选项,[] = 可选,| = 或,<command> = netstats 或 ns
/<command> stats - 显示统计项名称列表
/<command> get:config <option> - 获取配置值
/<command> set:config <option> <value> - 设置配置值
/<command> get:stat <stat>[,stat...] | all <player> - 获取玩家的一个或多个(或全部)统计数据
示例
/netstats get:stat broken valrix
/ns get:stat placed,broken valrix
/ns get:stat all valrix
配置文件详解
| 键名 | 默认值 | 含义 |
| admin | <空> | 管理员角色的用户名 |
| delay | 30 | 所有玩家数据保存到磁盘前的延迟秒数 |
| port | 9999 | 启动 Netstats 服务器的端口 |
| ip | true | 追踪玩家的 IP 地址 |
| broken | true | 追踪方块被破坏的行为 |
| placed | true | 追踪方块被放置的行为 |
| deaths | true | 追踪玩家死亡的事件 |
| mobs | true | 追踪玩家击杀生物的事件 |
| players | true | 追踪玩家击杀其他玩家的事件 |
| distance | true | 追踪玩家移动的距离 |
作者备注/警告
- 不要使用允许您“回滚”服务器任何更改的插件。这将导致所有统计数据出错!
资源链接
计划中的插件更新
计划中的网页端更新
插件更新日志
版本 5.0.4
- 通过移除更多重复的字符串和数字来优化内存使用
- 修复 JSON 构建器中的一处拼写错误
- 修复/改进了命令处理逻辑
- 改进了文档说明
网页端更新日志
版本 2.1
- 进行了一些代码清理和修复,并引入了更好的自动更新程序,确保在执行实际更新过程之前,更新程序本身是最新版本。
- 支持 7 种不同语言的本地化。
- 文件名更改为更具 Netstats 特定性,以防止 CSS 和其他页面的冲突。
- 改进了 include() 和 require() 调用,确保每个页面只添加一次,从而加快所有页面的加载速度并防止它们相互破坏。
Netstats is a plugin that watches each player's activities and saves it to their own stats file while running an internal server which is used by web clients to ask for player stats.
Web Version: v3.0 (Work In Progress)
Updated: Feb. 10, 2012
v5.0.4 is out! Web client coming next.
Features
- Monitors player online/offline status
- Keeps track of when they were last on the server
- Tracks total time they've been online
- Tracks player's last used IP address
- Tracks number of blocks broken
- Tracks number of blocks placed
- Tracks number of times the player has died
- Tracks total distance traveled by the player
- Tracks number of monsters killed
- Tracks number of players killed
- Tracks when the player first joined the server (after Netstats was installed).
- Auto-generating/Auto-updating config
- Tracking control (you choose what you want to be tracked)
- Multi-world support
- Reload-friendly
- Supports any language that can send JSON via HTTP POST
- 100% Java standard compliant
Commands
<> = required option, [] = optional, | = or, <command> = netstats or ns
/<command> stats - Shows list of stat names
/<command> get:config <option> - Gets config value
/<command> set:config <option> <value> - Sets config value
/<command> get:stat <stat>[,stat...] | all <player> - Get one or all stats of player
Examples
/netstats get:stat broken valrix
/ns get:stat placed,broken valrix
/ns get:stat all valrix
Config File Explained
| Key | Default Value | Meaning |
| admin | <blank> | Username of admin's character |
| delay | 30 | Time in seconds until all player data is saved to disk |
| port | 9999 | Port to start the Netstats server on |
| ip | true | Track the player's IP Address |
| broken | true | Track when a block is broken |
| placed | true | Track when a block is placed |
| deaths | true | Track when a player dies |
| mobs | true | Track when a player kills a mob |
| players | true | Track when a player kills another player |
| distance | true | Track distance a player travels |
Author's Notes/Warnings
- Don't use plugins that allow you to "roll back" any changes to the server. This will mess up all your stats!
Resources
Planned Plugin Updates
Planned Web Updates
- Re-write to work with new system
- Personal stat pages
Plugin Changelog
Version 5.0.4
- Improved memory usage by removing more repeated strings and numbers
- Fix a typo in the JSON builder
- Fixed/improved command handling
- Improved documentation
Web Changelog
Version 2.1
- Some code cleanup and fixes as well as a better auto-updater that makes sure that the updater is the latest version before doing the actual update process.
- Localization support for 7 different languages.
- File name changes to be more Netstats-specific which will prevent clashes of CSS and other pages.
- Better include() and require() calls so a page is only added once which speeds up all the pages and keeps them from destroying each other.
评论 0
登录后参与评分
还没有评论,来抢沙发吧