
README 语言 [ 中文 | English ]
UserPrefix 插件

轻量、高效且实时的用户前缀系统。
本插件基于 Spigot 实现,理论上支持所有 Minecraft 版本。
本插件的开发初衷是以中文为基础,旨在帮助中文开发者学习 Bukkit 插件开发。
本插件已发布在 SpigotMC 。
本插件已在 MCBBS 上发布,欢迎中文用户来这里下载。
示例

依赖
关于开发依赖项,请参阅 Dependencies 。
功能
- 理论上支持所有 Minecraft 版本。
- 重新加载配置将自动刷新所有玩家的前缀。
- 权限变更时实时判断并反馈给玩家。
- 可配置音效和消息。
- 前缀图标可配置为“已选择”、“拥有权限”和“无权限”。
- TabList 根据前缀权重自动排序(如有冲突,可关闭此功能)。
- 玩家名称上的前缀显示(如有冲突,可关闭此功能)。
- 支持简易聊天格式占位符。(不推荐)
- 带有自动排序和翻页功能的 GUI!
- 支持 PlaceholderAPI 变量!
- 支持 Hex Color!(1.16 及以上版本)
&(#Color)
- 示例:LightSlateBlue
&(#8470FF) 、 DarkSlateBlue &(#483D8B)
注意事项
1. 版本支持问题
该插件理论上支持所有版本。
如果图标未加载、声音无法播放等,请检查配置文件中的物品类型和声音类型在当前版本中是否存在。
以 SOUND 为例,村民说“好的”的声音在低版本中是 "VILLAGER_YES",而在高版本中变为 "ENTITY_VILLAGER_YES"。
2. Scoreboard 异常问题
头部的前缀显示和 TabList 的排序均使用 scoreboard API。
如果存在冲突,请在配置文件中关闭 functions.on-name-prefix。
命令
本插件的命令基于中文!
未来可能支持多语言。
/UserPrefix 或 /prefix # 打开前缀 GUI
/UserPrefixAdmin # 查看管理员命令帮助
/UserPrefixAdmin reload # 重新加载配置
/UserPrefixAdmin list # 列出所有配置的前缀。
占位符 (PlaceholderAPI)
安装 PlaceholderAPI 后,你可以输入 /papi info UserPrefix 查看所有占位符。
# %UserPrefix_prefix%
- 获取当前前缀的内容
# %UserPrefix_weight%
- 获取当前前缀的权重。
# %UserPrefix_identifier%
- 获取当前前缀的标识符。
# %UserPrefix_name%
- 获取当前前缀的名称。
# %UserPrefix_has_<Identifier>%
- 判断玩家是否拥有某个前缀(true/false)
配置文件
插件配置 (config.yml .
首次启动时将生成。
消息配置 (messages.yml)
首次启动时将生成。
前缀配置(prefixes/*.yml)
所有前缀均为独立的配置文件,存储于 <数据文件夹>/prefixes/ 中,便于管理。
文件名中的某些符号可能会影响读取,请避免使用它们。
支持与捐赠
本项目由 YourCraft(你的世界) 提供支持。

开源协议
本项目的源代码采用 GNU 通用公共许可证 v3.0。

README LANGUAGES [ 中文 | English ]
UserPrefix Plugin

Lightweight, efficient, and real-time user prefix system.
This plugin is implemented based on Spigot ,Theoretically support ALL MineCraft Versions.
The development of this plugin is based on Chinese which purpose is to help Chinese developers learn Bukkit plugin
development.
This plugin has been published on SpigotMC .
本插件已在 MCBBS 上发布,欢迎中文用户来这里下载。
Examples

Dependencies
For development dependencies, please see Dependencies .
Features
- Theoretically support ALL MineCraft Versions.
- Reloading the configuration will automatically refresh the prefix of all players.
- Real-time judgment and feedback to the player when permissions are changed.
- Configurable sounds and messages.
- The prefix icon can be configured as "Selected", "Has Permission" and “No Permission”.
- TabList is automatically sorted according to the weight of the prefix (if there is a conflict, it can be turned off)
- The prefix display on the player name (can be turned off if there has any conflict)
- Simple Chat Format Placeholder support. (Not Recommended)
- GUI with automatic sorting and page turning!
- Support PlaceholderAPI variables!
- Support Hex Color! (Version 1.16 and above)
&(#Color)
- Example: LightSlateBlue
&(#8470FF) 、 DarkSlateBlue &(#483D8B)
Notice
1. Version support issues
This plugin theoretically supports all versions.
If the icon does not load, the sound cannot be played, etc., please check whether the type of the item and sound in the
configuration file exists in the current version.
Take the SOUND as an example. The sound that the villager said "OK" is "VILLAGER_YES" in the lower version, but it
becomes "ENTITY_VILLAGER_YES" in the higher version.
2. Scoreboard exception problem
The display of the prefix on the head and the sorting of the TabList both use the scoreboard API.
Please turn of the functions.on-name-prefix in the configuration if there is a conflict.
Commands
This plugin's Commands are based on Chinese!
May support multi-language in the future.
/UserPrefix or /prefix #Open prefix GUI
/UserPrefixAdmin # View Admin Command Help
/UserPrefixAdmin reload # Reload Config
/UserPrefixAdmin list # List all configured prefixes.
Placeholders (PlaceholderAPI)
After installed the PlaceholderAPI , you can
type /papi info UserPrefix to see all the placeholders.
# %UserPrefix_prefix%
- Get the content of the current prefix
# %UserPrefix_weight%
- Get the weight of the current prefix.
# %UserPrefix_identifier%
- Get the identifier of the current prefix.
# %UserPrefix_name%
- Get the name of the current prefix.
# %UserPrefix_has_<Identifier>%
- Determine whether the player has a certain prefix(true/false)
Configuration files
Plugin Configuration (config.yml .
Will be generated on the first boot up.
Messages Configuration (messages.yml)
Will be generated on the first boot up.
Prefixes Configuration (prefixes/*.yml)
All prefixes are separate configuration files, stored in the <Data Folder>/prefixes/ for easy management.
Some symbols in file name may affect reading, please avoid using them.
Support and Donation
This project is support by the YourCraft(你的世界) .

Open source agreement
The source code of this project uses GNU General Public License v3.0
License.
评论 0
登录后参与评分
还没有评论,来抢沙发吧