
Playtime Tracker 是一款 velocity 插件,让你无需花费时间搭建数据库等繁琐配置,即可轻松记录并查看玩家在所有服务器上的在线时长。使用 Playtime Tracker,你可以:
- 记录玩家在线时长: 自动追踪并记录服务器上每位玩家的在线时长。
- 查看在线时长: 通过简单的命令,轻松查看自己或其他玩家的在线时长。
- MySQL 支持(MariaDB): 自 v1.8 版本起,该插件现在也可选地将在线时长保存到数据库中。
- 在线时长排行榜: 展示在线时长最长的玩家排行榜。排行榜的长度可在配置文件中自定义。
- 完全可配置的 MiniMessage 消息: 使用渐变效果自定义所有插件消息,以确保它们与你的服务器主题和风格相符。在配置中,你还可以使用总时长的版本占位符以及 %place%,例如:如果你想从“天”开始显示而不是“周”,可以使用
%totaldays%代替%days%。你也可以使用 %place% 占位符。 - PlaceholderAPI 支持: 如果你希望在 Bukkit、Paper 等服务器上使用该插件的占位符,请下载我的 PlaytimeLink 插件到你的服务器。
- 缓存系统: 对于代理服务器资源有限或配置中设置了较大的排行榜限制,且多个 PlaytimeLink 插件实例同时访问数据的情况,该系统通过存储频繁访问的在线时长数据和配置条目来加快检索速度,从而提升性能。如果出现任何问题,可以在配置文件中禁用在线时长缓存。
- 奖励系统: 你可以设置当玩家达到特定在线时长时,让插件执行命令。示例配置:

命令:
- /playtime : 查看你自己的在线时长。别名: /pt。
- /playtime [player] : 查看其他玩家的在线时长。
- /playtime add [player] [time in sec].
- /playtime sub [player] [time in sec].
- /playtime set [player] [time in sec].
- /playtimetop : 在线时长排行榜。别名: /pttop, /ptt.
- /playtimereload : 重载配置文件。别名: /ptreload, /ptrl.
- /playtimeresetall: 重置所有在线时长。别名: /ptra, /ptresetall.
权限:
可选择性启用:
- vpt.getowntime : 允许玩家查看自己的时间统计数据。
- vpt.getotherstime : 允许玩家查看其他玩家的时间统计数据。
- vpt.gettoplist : 允许玩家查看时间统计数据的排行榜。
始终启用:
- vpt.reload : 配置重载权限。
- vpt.modify : 修改在线时长权限。
- vpt.ptresetall : 重置所有在线时长权限。
- vpt.spam : 绕过垃圾信息检查权限。
- vpt.rewards.exempt : 免除玩家获得奖励。
该插件尚未完成,即将推出的功能:
- 可滚动的排行榜:轻松浏览在线时长排行榜。
欢迎在 GitHub 上提交功能请求和错误报告,感谢大家支持,下载量已达 4000 次。

Playtime Tracker is a velocity plugin, allowing you to easily log and view player playtime across all of your servers without needing to spend time setting up databases and whatever else. With Playtime Tracker, you can:
- Log Player Playtime: Automatically track and record the playtime of every player on your server.
- View Playtime: Easily check your own or other players' playtime with simple commands.
- MySQL Support (MariaDB): Since v1.8 the plugin now also optionally supports saving playtime into a database.
- Playtime Toplist: Display a leaderboard of players with the most playtime. The length of the toplist can be configured.
- Fully Configurable Messages with MiniMessage support: Customize all plugin messages with gradients to ensure they fit with your server's theme and style. In the config, you can also use total version of playtimes, and the %place%, for example: %totaldays% instead of %days% if you want it to start only from days, not weeks. You can also use the %place% placeholder.
- PlaceholderAPI support: Download my PlaytimeLink plugin to your bukkit, paper, etc servers if you want to have placeholders from this plugin.
- Caching System: Boosts performance for servers where the proxy only has limited resources and/or there is a big toplist limit set in the config with multiple instances of the playtimelink plugin accessing it, by storing frequently accessed playtime, and config entries for faster retrieval. If any issues arise, playtime caching can be disabled in the config file.
- Rewards System: You can make the plugin execute commands when players reach specific playtimes. Example config:

Commands:
- /playtime : View your playtime. Aliases: /pt.
- /playtime [player] : View another player's playtime.
- /playtime add [player] [time in sec].
- /playtime sub [player] [time in sec].
- /playtime set [player] [time in sec].
- /playtimetop : Playtime toplist. Aliases: /pttop, /ptt.
- /playtimereload : Reload the config. Aliases: /ptreload, /ptrl.
- /playtimeresetall: Reset every playtime. Aliases: /ptra, /ptresetall.
Permissions:
Can be enabled optionally:
- vpt.getowntime : Allows players to view their own time statistics.
- vpt.getotherstime : Allows players to view the time statistics of other players.
- vpt.gettoplist : Allows players to view the toplist of time statistics.
Always enabled:
- vpt.reload : Config reload permission.
- vpt.modify : Playtime modify permission.
- vpt.ptresetall : Playtime reset all permission.
- vpt.spam : Bypass spam checks permission.
- vpt.rewards.exempt : Exempt a player from getting rewards.
The plugin isn't complete yet, upcoming features:
- Scrollable Toplist: Navigate through the playtime toplist with ease.
Feature requests and bug reports are welcome on github, thank you for the 4000 downloads.
下载 Playtime Velocity
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Playtime Velocity
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Playtime Velocity
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Playtime Velocity
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Playtime Velocity
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Playtime Velocity
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Playtime Velocity
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Playtime Velocity
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Playtime Velocity
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Playtime Velocity
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
v1.10
- 已更新为 Java 21,这是该插件现在所要求的版本。
- 默认消息解析器现已改为 MiniMessage,支持渐变效果和控制台颜色。
- 游戏时长现以秒为单位计算,因为对此使用毫秒并无必要。你的存档将自动转换,但如果你使用了奖励系统,则需要自行转换奖励数据。
- 修复了一个 bug:如果玩家在完全连接前从代理断开连接,插件会报错。
- 修复了一个 bug:向不在缓存中的玩家增加游戏时长时,未能按要求将其加入排行榜。
- 现在在使用
pt modify命令时也可以自动补全你自己的名字了。 - 在配置文件中新增选项,用于定义排除的服务器,这些服务器中的游戏时长将不被统计。
- 新增支持在配置文件中自定义插件的命令名称和别名。
- 移除了旧的配置文件数据转换器,因为已无保留必要。
- 确保更新检查器在使用完毕后正确关闭其 HttpClient。
- 更新了依赖库。
注意:如果你使用了 PlaytimeLink,也请一并更新它。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
自定义你的Minecraft头像!
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
评论 0
登录后参与评分
还没有评论,来抢沙发吧