BetterPlayTime 是一款现代化且高度可定制的插件,用于追踪玩家在服务器上的游戏时长。它允许管理员监控玩家活动、显示自定义排行榜、导入现有游戏时长数据,并通过 PlaceholderAPI 将玩家统计数据与其他插件集成。
功能特性:
- 自动追踪玩家游戏时长
- 支持在线和离线玩家
- 玩家排名及单独排名位置
- 完全可定制的 TOP GUI(图形用户界面)
- 可配置的聊天或 GUI 排行榜显示
- 自定义 GUI 大小、标题和玩家槽位
- 自定义 GUI 装饰
- 支持发光效果和 ItemFlag
- 可自定义 GUI 打开音效
- PlaceholderAPI 集成
- 支持 MiniMessage、HEX 颜色及渐变效果
- 自定义语言系统
- 可定制的时间格式
- 启用或禁用单独的时间单位
- 支持 YAML、SQLite 和 MySQL 存储选项
- 可从 PlayTime 插件和原版统计信息中导入
- 导入确认系统
- 可定制的 TOP 命令
- 命令权限与 Tab 补全
- 重载音效及重载时间信息
命令:
/betterplaytime
/betterplaytime <player>
/betterplaytime top
/playtime-top 或 /top-playtime
- 显示游戏时长排行榜
- 可在 config.yml 中选择激活的命令
/betterplaytime reload
/betterplaytime import <PlayTime|vanilla>
/betterplaytime confirm
权限:
betterplaytime.use
betterplaytime.reload
- 允许使用 /betterplaytime reload 命令
betterplaytime.import
占位符(Placeholders):
%betterplaytime_time%
%betterplaytime_rank%
TOP 排行榜占位符:
%betterplaytime_top_1_name%
%betterplaytime_top_1_time%
你可以将 "1" 替换为 1 到 100 之间的任何排名位置。
PlaceholderAPI 是可选的,并非 BetterPlayTime 正常运行的必要条件。
GUI 自定义:
BetterPlayTime 包含一个完全可定制的游戏时长排行榜 GUI。
可用的自定义选项包括:
- GUI 标题
- GUI 大小(9–54 个槽位)
- 玩家头像槽位
- 装饰物品
- 物品材质、名称和描述(lore)
- 发光效果
- ItemFlags
- 打开音效、音量和音调
数据存储:
BetterPlayTime 支持三种存储类型:
- YAML
- SQLite(实验性)
- MySQL(实验性)
存储类型可在 config.yml 中进行选择。
YAML 仍然是默认且推荐的存储类型。SQLite 和 MySQL 目前处于实验阶段,可能无法正常工作。
更改存储类型需要重启服务器。目前不支持在不同存储类型之间自动迁移数据。
语言:
BetterPlayTime 默认内置英语和波兰语,同时也支持自定义语言。
默认语言文件:
messages/en.yml
messages/pl.yml
你可以通过在 messages 文件夹内创建新的语言文件轻松添加自己的翻译,例如:
messages/de.yml
messages/cz.yml
然后在 config.yml 中设置所需的语言即可。
颜色支持:
- 传统颜色代码
- HEX 颜色
- MiniMessage
- 渐变色
兼容性:
BetterPlayTime is a modern and highly customizable plugin for tracking player playtime on your server. It allows administrators to monitor player activity, display customizable leaderboards, import existing playtime data and integrate player statistics with other plugins through PlaceholderAPI.
Features:
- Automatic player playtime tracking
- Online and offline player support
- Player rankings and individual ranking positions
- Fully customizable TOP GUI
- Configurable chat or GUI ranking display
- Custom GUI size, title and player slots
- Custom GUI decorations
- Glow and ItemFlag support
- Customizable GUI opening sound
- PlaceholderAPI integration
- MiniMessage, HEX colors and gradient support
- Custom language system
- Customizable time formatting
- Enable or disable individual time units
- YAML, SQLite and MySQL storage options
- Import from the PlayTime plugin and vanilla statistics
- Import confirmation system
- Customizable TOP command
- Command permissions and tab completion
- Reload sound and reload time information
Commands:
/betterplaytime
- Displays all available commands
/betterplaytime <player>
- Shows the player's playtime and ranking position
/betterplaytime top
- Displays the playtime leaderboard
/playtime-top or /top-playtime
- Displays the playtime leaderboard
- The active command can be selected in config.yml
/betterplaytime reload
- Reloads the configuration and language files
/betterplaytime import <PlayTime|vanilla>
- Prepares a playtime data import
/betterplaytime confirm
- Confirms the pending import within 60 seconds
Permissions:
betterplaytime.use
- Allows access to BetterPlayTime commands
betterplaytime.reload
- Allows access to /betterplaytime reload
betterplaytime.import
- Allows importing playtime data
Placeholders:
%betterplaytime_time%
- Displays the player's current playtime
%betterplaytime_rank%
- Displays the player's ranking position
TOP Ranking Placeholders:
%betterplaytime_top_1_name%
- Displays the name of the player in TOP 1
%betterplaytime_top_1_time%
- Displays the playtime of the player in TOP 1
You can replace "1" with any ranking position from 1 to 100.
PlaceholderAPI is optional and is not required for BetterPlayTime to work.
GUI Customization:
BetterPlayTime includes a fully customizable playtime leaderboard GUI.
Available customization options:
- GUI title
- GUI size (9–54 slots)
- Player head slots
- Decorative items
- Item materials, names and lore
- Glow effects
- ItemFlags
- Opening sound, volume and pitch
Data Storage:
BetterPlayTime supports three storage types:
- YAML
- SQLite (Experimental)
- MySQL (Experimental)
The storage type can be selected in config.yml.
YAML remains the default and recommended storage type. SQLite and MySQL are currently experimental and may not work correctly.
Changing the storage type requires a server restart. Automatic data migration between storage types is not currently supported.
Language:
BetterPlayTime includes English and Polish by default, while also supporting custom languages.
Default language files:
messages/en.yml
messages/pl.yml
You can easily add your own translation by creating a new language file inside the messages folder, for example:
messages/de.yml
messages/cz.yml
Then simply set the desired language in config.yml.
Color Support:
- Legacy color codes
- HEX colors
- MiniMessage
- Gradients
Compatibility:
评论 0
登录后参与评分
还没有评论,来抢沙发吧