PlayerTime ⏱️
一款专为运行 Paper 26.2、Purpur 26.2 和 Java 25 的现代 Minecraft 服务器打造的高级、高性能且轻量级的在线时长追踪插件。
与简单的计数器不同,PlayerTime 将玩家活动细分为详细的历史时段,允许服务器管理员和玩家精确追踪在服务器上花费的时间。
⭐ 功能
- ? 详细统计: 动态追踪在线时长,并将其分类为今天、本周、本月、今年和总计。
- ? 现代核心: 完全使用现代化的 Paper API 和 Kyori Adventure 文本引擎构建,确保流畅的性能。
- ? 离线缓存: 保存并读取离线玩家的数据,而不会导致单刻服务器卡顿。
- ? 自动重置: 智能的内部日期跟踪会在午夜准时自动重置每日、每周、每月和每年的统计数据。
- ? 异步保存: 定期在后台线程中安全地将所有玩家统计数据刷新到
userdata.yml。
- ?️ 内置更新器: 具备异步更新检查器,直接链接至 GitHub Releases。
? 命令
/playertime — 显示插件信息和正确的命令用法。
/playertime <player> — 显示指定玩家的完整详细在线时长细分。
/playertime <player> <day/week/month/year/all> — 检查玩家特定时间段的在线时长。
? 权限
playertime.use — 允许玩家使用该命令并查看统计数据(默认授予 OP)。
- 完全兼容 LuckPerms!
? 要求
- 服务器核心: Paper 26.2 和 Purpur 26.2 版本。
- Java 版本: Java 25
?️ 安装指南
- 从 Versions 部分下载最新的编译二进制文件 (
PlayerTime-1.0.jar)。
- 将
.jar 文件放入服务器的 plugins 文件夹中。
- 重启服务器。请勿使用
/reload,因为它可能会破坏后台数据循环(如果服务器处于离线状态,只需启动它即可)。
- 通过您首选的权限管理器配置权限(例如,
/lp group default permission set playertime.use true)。
? 支持与错误报告
如果您遇到任何错误、报错或有新功能建议,请在我们的 Issues 跟踪器中提交官方工单。
❗ 警告
此插件仅针对 PAPER 26.2 和 PURPUR 26.2 构建版本创建!切勿尝试在其他版本的 PAPER 和 PURPUR 上使用此插件,否则您的服务器可能会崩溃!
PlayerTime ⏱️
An advanced, high-performance, and lightweight playtime tracking plugin built specifically for modern Minecraft servers running Paper 26.2, Purpur 26.2 and Java 25.
Unlike simple counters, PlayerTime breaks down player activity into detailed historical periods, allowing server administrators and players to track exactly how much time is spent on the server.
⭐ Features
- ? Detailed Statistics: Tracks playtime dynamically and categorizes it into Today, This Week, This Month, This Year, and Total.
- ? Modern Core: Fully built using the modern Paper API and Kyori Adventure text engine for flawless performance.
- ? Offline Caching: Saves and reads data for offline players without causing single-tick server lag.
- ? Automatic Resets: Smart internal date tracking automatically resets daily, weekly, monthly, and yearly stats exactly when midnight strikes.
- ? Asynchronous Saving: Periodically flushes all player statistics to
userdata.yml safely in a background thread.
- ?️ Built-in Updater: Features an asynchronous Update Checker that links directly to the GitHub Releases.
? Commands
/playertime — Shows plugin information and correct command usage.
/playertime <player> — Displays a full detailed playtime breakdown for the specified player.
/playertime <player> <day/week/month/year/all> — Checks a specific time period for a player.
? Permissions
playertime.use — Allows players to use the command and check stats (Granted to OP by default).
- Fully compatible with LuckPerms!
? Requirements
- Server Core: Paper 26.2 and Purpur 26.2 builds.
- Java Version: Java 25
?️ Installation Guide
- Download the latest compiled binary (
PlayerTime-1.0.jar) from the Versions section.
- Drop the
.jar file into your server's plugins folder.
- Restart your server. Do not use
/reload as it can break background data loops (if your server was offline, just start it).
- Configure permissions via your preferred permission manager (e.g.,
/lp group default permission set playertime.use true).
? Support & Bug Reports
If you encounter any bugs, errors, or have suggestions for new features, please open an official ticket in our Issues tracker.
❗ WARNING
THIS PLUGIN WAS CREATED ONLY FOR PAPER 26.2 AND PURPUR 26.2 BUILDS! DO NOT TRY TO USE THIS PLUGIN ON OTHER VERSIONS OF THE PAPER AND PURPUR, OR YOUR SERVER CAN CRASH!
评论 0
登录后参与评分
还没有评论,来抢沙发吧