SpentTime

⏰️ 一个为你游戏时间提供高效插件,拥有众多功能和配置可能性。

资源图片
# SpentTime [![Build Status](https://github.com/imDMK/SpentTime/actions/workflows/gradle.yml/badge.svg)](https://github.com/imDMK/SpentTime/actions/workflows/gradle.yml) ![JDK](https://img.shields.io/badge/JDK-1.17-blue.svg) ![Supported versions](https://img.shields.io/badge/Minecraft-1.17--1.21.4-green.svg) [![SpigotMC](https://img.shields.io/badge/SpigotMC-yellow.svg)](https://www.spigotmc.org/resources/spenttime.111938/) [![Bukkit](https://img.shields.io/badge/Bukkit-blue.svg)](https://dev.bukkit.org/projects/spenttime) [![PaperMC](https://img.shields.io/badge/Paper-004ee9.svg)](https://hangar.papermc.io/imDMK/SpentTime) [![bStats](https://img.shields.io/badge/bStats-00695c)](https://bstats.org/plugin/bukkit/SpentTime/19362) ### 信息 这是一个插件,允许你查看玩家在服务器上花费了多少时间。 * **注重性能** - 尽量减少对服务器资源的影响,让你能够保持高性能。 * **配置的简洁性** - 感谢清晰的文档,即使没有高级知识的人也能轻松地将插件调整为自己的需要。 * **定期更新** - 我们定期更新插件,既修复错误,又添加新功能,以确保与游戏最新版本的完全兼容。 ### 特性 * 可定制的顶级花费时间玩家 GUI, * 可配置的项目显示顶级玩家花费时间的地点, * 更改基于花费时间的顶级玩家显示 GUI 的类型的选项, * 自定义顶级玩家花费时间 GUI 外观的选项, * 设置在顶级花费时间列表中显示玩家数量的选项, * 自定义消息的选项(动作条,聊天等), * 玩家的离线时间跟踪, * 针对单个玩家重置花费时间, * 针对服务器上的所有玩家重置花费时间, * [Placeholder API](https://github.com/PlaceholderAPI/PlaceholderAPI) 支持, * [Adventure 组件](https://github.com/KyoriPowered/adventure) 支持。 ### 命令权限 | 命令 | 权限 | |:----------------------|:----------------------------| | `spenttime` | command.spenttime | | `spenttime ` | command.spenttime.target | | `spenttime top` | command.spenttime.top | | `spenttime set` | command.spenttime.set | | `spenttime reset` | command.spenttime.reset | | `spenttime reset-all` | command.spenttime.reset.all | ### GUI 类型 | GuiType | 描述 | |:----------------------|:--------------------------------------------------------------------------| | `STANDARD` | 标准 GUI,当玩家列表不超过 10 时应使用. | | `PAGINATED` | 具有允许你通过项目在页面之间移动的页面的 GUI | | `SCROLLING` | 允许你滚动浏览项目的 GUI | | `DISABLED` | 玩家列表将通过聊天发送 | ### 通知类型 * `CHAT` * `ACTIONBAR` * `TITLE` * `SUBTITLE` * `DISABLED` ### 支持的数据库类型 * `SQLITE` * `MYSQL` ### [Placeholder API](https://github.com/PlaceholderAPI/PlaceholderAPI) 格式 * `%spent-time%` - 显示人类可读(例如 10h 30m)的玩家花费时间的转换后的值。 ### 为什么我的时间不能立即计入顶部? * 这是为了提高插件效率而特意做出的。玩家的时间在进入和退出服务器时更新,并且还有一个额外的任务来更新所有玩家的花费时间。 你可以在配置中通过更改 `spentTimeSaveDelay` 来更改其频率。 ### 报告问题 如果你有任何建议或发现任何错误,请使用 [此](https://github.com/imDMK/SpentTime/issues) 站点报告。