Playtime 是一款用于追踪特定玩家多种时长的插件。目前处于发布阶段,它可以记录玩家的在线时长、存活时长以及在该服务器上的总游戏时间。它目前支持三种数据管理方式:MySQL、SQLite 以及使用 yaml 文件的扁平文件存储。此外还支持 AFK(挂机)玩家追踪(如果您希望启用此功能),并且我尽量使该插件内的所有配置项均可自定义。如果您有任何反馈,请随时留言!如果我认为建议适合该插件,通常会在收到请求后的一周内添加新功能。
新闻:Playtime-2.0.0!
我们计划对 Playtime 插件进行彻底的重写!您可以通过以下链接查看此次更新的说明:
这将带来一些重大改进,包括对事件系统的惊人重写,最终修复事件系统以允许在特定时间段后添加玩家自定义事件。
对更新有疑问,或需要一般性的插件帮助?请在下方留言,或通过 IRC 直接联系我:#codelanx
升级到 Playtime 1.4.1+
请注意,v1.4.0 引入了一个包含几个示例事件的事件系统。如果您不想使用任何事件,只需删除 events.yml 文件中的所有内容为空并保存即可。
安装
- 下载 jar 文件并将其放入您的插件文件夹
- 启动您的服务器
- PlayTime 会在您的 plugins 文件夹中生成一个 config.yml,对其进行自定义以便连接到您的数据库
- 重新启动您的服务器
要求
Java 6 或更高版本
功能
- 记录当前在线用户的游玩时间,每分钟更新一次
- 将游玩时间记录到 MySQL 数据库中
- 通过命令查询自己的游玩时间
- 通过命令查询其他玩家的游玩时间
- 查看距离上次死亡的时间
- 查看其他人距离上次死亡的时间
- 停止追踪 AFK 玩家的时间
- 支持扁平文件(yml 文件) - 已弃用,未来会回归
- 支持 SQLite
- 动态配置更新
- 异步数据管理
- 自登录以来在线时长
- 其他语言 - 目前支持:en_US (英语), de_DE (德语)
- 达到指定时间时触发控制台命令
- 添加总游玩时间排行榜
- 添加切换数据管理器的命令
- 自动更新和版本检查。可以在配置的 “update” 部分禁用此功能。更多信息,请阅读 Configuration 页面
如需完整的功能列表,欢迎查看此处:
指标统计
Playtime 使用 metrics,以匿名方式跟踪操作系统、玩家数量、Java 版本和其他特定信息。您可以点击下方的图表查看收集的信息,这些数据用于针对在统计范围内开发的具体群体进行未来的潜在开发:
您可以在所有插件的 Metrics 配置中禁用此功能,位于 plugins/PluginMetrics/config.yml 下,并将 "opt-out" 设置为 true。请记住,这将导致您的服务器不报告任何信息,而我几乎像喜欢猫一样喜欢统计数据 </3
Playtime is a plugin for tracking numerous times for particular players. Currently within its release stage, it can track the time that a player has been online, been alive for, and how long they have played on the server in total. It currently supports three forms of data management, which are MySQL, SQLite, and flat file storage using yaml files. There is also tracking of AFK players (if you wish to enable it), and I try to keep everything within this plugin as configurable as possible. Please, if you have any type of feedback at all, don't hesitate to leave a comment! I usually try to add new ideas within a week of requesting it if I deem that it is appropriate for the plugin.
News: Playtime-2.0.0!
There are plans for an upcoming re-write of the Playtime plugin in its entirety! You can view the notes on this update at the link below:
This will add some major overhauls, including an incredible re-write of the event system, finally fixing the event system to allow for player-defined events after a certain time period.
Have questions on the update, or need help with the plugin in general? Leave a comment below or feel free to talk to me direct via IRC: #codelanx
Updating to Playtime 1.4.1+
Note that v1.4.0 introduces an event system with a few example events placed in. If you would not like any events to be used at all, simply remove everything in the events.yml file and save it as blank.
Installation
- Download the jar file and put it in your plugin folder
- Start your server
- PlayTime has generated a config.yml in your plugins folder, customize it so it can connect to your database
- Restart your server
Requirements
Java 6 or higher
Features
- Logs PlayTime for users currently online, updates it every minute
- Logs the PlayTime in a MySQL database
- Looking up your own play time with a command
- Look up up someone elses play time with a command
- See how long since your last death
- See how long since someone else's death
- Stop tracking the time of AFK players
- Flatfile support (yml files) - Deprecated, will return in the future
- SQLite support
- Dynamic configuration updating
- Asynchronous data management
- Time spent online since login
- Other languages - Currently supported: en_US (English), de_DE (German)
- Firing Console commands when a time is reached
- Add top for total time played
- Add command to switch between data managers
- Automatic updating and version checking. This is possible to disable under the "update" section of the config. For more information, read the Configuration page
For a full list of upcoming features, feel free to look here:
Metrics Stats
Playtime uses metrics, which keeps track of information such as OS, player count, java version, and other specific information in an anonymous fashion. You can view the collected information by clicking the graph below, and it is used for any potential future development for specific groups that develop within statistics:
This can be disabled in the Metrics configuration for all plugins, under plugins/PluginMetrics/config.yml , and set "opt-out" to true. Keep in mind this will make your server not report any information, and I love stats almost as much as cats </3
下载 PlayTime
下载 PlayTime
下载 PlayTime
下载 PlayTime
下载 PlayTime
下载 PlayTime
下载 PlayTime
下载 PlayTime
下载 PlayTime
下载 PlayTime
1.4.5
- 修复自动更新以符合 bukkitdev 标准
- 现在可以通过插件本身启用下载自动运行,无需手动下载
- 修复德语本地化在创建记分板时报错的问题
- 修复挂机时间仍在为挂机玩家计数的错误
- 资源使用效率改进
1.4.3
- 迁移至 1.6.4
- 修复版本检查功能
- 重写语言系统
- 改进命令检查
- 移除不必要的布尔变量
- 清理语言文件
- 清理调试输出
- 向所有调试级别 3 的输出添加堆栈跟踪,而不仅仅是部分输出
- 不再休眠线程
- 捕获已关闭连接的关闭操作,现在输出警告信息
- 大量修复 SQL 查询问题
- 大量修复 bug
- 更新 Javadocs
1.4.1
- 构建更简洁的监听器系统
- 对部分区域进行重大代码清理
- 修复错误的语言文件调用
- 允许事件文件为空
- 修复 NPC 和类玩家实体的相关问题
- 小型 bug 修复
- 添加德语本地化 (de_DE)
Previous
- 添加顶级命令
- SQLite 稳定可用
- 添加可执行管理器,这样即使服务器卡顿,插件也不会滞后。
- 添加重载功能
- 清理可执行文件
- 广泛的 bug 检查与修复
- 代码清理 / 为所有内容添加 javadocs
- 添加数据库切换功能
- 添加数据库转换(注意:这不会转换为 flatfile 格式,但会从 flatfile 格式转换)
- 添加事件及事件系统
- 实现多语言系统(目前仅翻译了英语,但未来将动态提供更多语言支持)
YAML / Flatfile 存储已被禁用。它存在缺陷且无法正常工作。如果你不想使用 MySQL,我目前建议使用“sqlite”。flatfile 的缺陷严重到无法在当前状态下转换文件。
配置的自动修复使其功能正常,但结构略显混乱。这是一个缺点,因为我必须在“功能性”和“美观性”之间做出选择。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。






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