LuckPrefix
LuckPrefix 是一款现代、极简的 Minecraft 插件,用于管理和显示玩家前缀及分组。它设计注重清晰性和灵活性,允许你通过简单的 YAML 配置文件设置自定义前缀、后缀、名称颜色以及显示格式。
功能特性
- 基于分组的的前缀 – 轻松分配和管理玩家分组的组前缀。
- 可定制的格式 – 为每个组定义自己的前缀、后缀、名称颜色和显示格式。
- 渐变与十六进制支持 – 使用 MiniMessage 渐变和自定义十六进制代码来设置前缀样式。
- 排序系统 – 通过
sortID控制组的顺序(数值越低,优先级越高)。 - MiniMessage 格式 – 使用 MiniMessage 进行高级的颜色、渐变和样式定制。
- 轻量级 – 对性能影响极小,易于维护。
- 直观的配置 – 所有组的设置都集中在一个清晰的配置文件中。
- PlaceholderAPI 集成
- 在 groups.yml 中使用来自其他插件的占位符
- 我们提供的占位符
- %luckprefix_prefix%
- %luckprefix_suffix%
- %luckprefix_tabformat%
- %luckprefix_chatformat%
- %luckprefix_sortid%
- %luckprefix_namecolor%
安装方法
- 下载 LuckPrefix。
- 将
LuckPrefix.jar文件放入服务器的plugins目录中。 - 重启你的服务器,不要重载。
配置
LuckPrefix 使用其数据文件夹中的 groups.yml 文件来定义分组。
groups.yml 示例
groups:
admin:
prefix: '<gradient:#ff4444:#ff7700>[Admin]</gradient>'
suffix: ''
namecolor: 'RED'
sortID: 1
tabformat: '<prefix><player><suffix>'
chatformat: '<prefix><player><suffix> <gray>»</gray> <message>'
moderator:
prefix: '<aqua>[Mod]</aqua>'
suffix: ''
namecolor: 'AQUA'
sortID: 2
tabformat: '<prefix><player><suffix>'
chatformat: '<prefix><player><suffix> <gray>»</gray> <message>'
vip:
prefix: '<gradient:#ffd700:#fff700>[VIP]</gradient>'
suffix: ''
namecolor: 'GRAY'
sortID: 3
tabformat: '<prefix><player><suffix>'
chatformat: '<prefix><player><suffix> <gray>»</gray> <message>'
customhex:
prefix: '<#33ccff>[HexTag]</#33ccff>'
suffix: ''
namecolor: 'GRAY'
sortID: 10
tabformat: '<prefix><player><suffix>'
chatformat: '<prefix><player><suffix> <gray>»</gray> <message>'
default:
prefix: '<white>[Player]</white>'
suffix: ''
namecolor: 'WHITE'
sortID: 100
tabformat: '<prefix><player><suffix>'
chatformat: '<prefix><player><suffix> <gray>»</gray> <message>'
占位符
<prefix>:替换为组前缀。<suffix>:替换为组后缀。<player>:玩家的名称。<message>:玩家的聊天消息(仅适用于chatformat)。
其他键值
- namecolor: 玩家名称的颜色(RED, GRAY, BLUE)。
- sortID: 数值越低表示优先级越高。如果一个玩家同时属于两个组,
sortID: 1的组会优先于sortID: 100的组被选中。
贡献
欢迎贡献。请在 GitHub 上提交 Issue 或 Pull Request。
许可证
LuckPrefix 采用 MIT License 许可。
LuckPrefix
LuckPrefix is a modern, minimalistic Minecraft plugin for managing and displaying player prefixes and groups. Designed for clarity and flexibility, it allows you to set custom prefixes, suffixes, name colors, and display formats through a simple YAML configuration.
Features
- Group-based Prefixes – Easily assign and manage group prefixes for players.
- Customizable Formatting – Define your own prefix, suffix, name color, and display formats for each group.
- Gradient & Hex Support – Use MiniMessage gradients and custom hex codes for prefix styles.
- Sort Order System – Control group order via
sortID(lower number = higher priority). - MiniMessage Format – Use MiniMessage for advanced color, gradients, and style customization.
- Lightweight – Minimal performance impact and easy to maintain.
- Straightforward Configuration – All group settings in one clear file.
- PlaceholderAPI integration
- Use placeholders from other plugins in groups.yml
- Our placeholders
- %luckprefix_prefix%
- %luckprefix_suffix%
- %luckprefix_tabformat%
- %luckprefix_chatformat%
- %luckprefix_sortid%
- %luckprefix_namecolor%
Installation
- Download LuckPrefix.
- Place the
LuckPrefix.jarfile into your server’spluginsdirectory. - Restart your server, DON'T RELOAD.
Configuration
LuckPrefix uses a groups.yml file in its data folder for group definitions.
Example groups.yml
groups:
admin:
prefix: '<gradient:#ff4444:#ff7700>[Admin]</gradient>'
suffix: ''
namecolor: 'RED'
sortID: 1
tabformat: '<prefix><player><suffix>'
chatformat: '<prefix><player><suffix> <gray>»</gray> <message>'
moderator:
prefix: '<aqua>[Mod]</aqua>'
suffix: ''
namecolor: 'AQUA'
sortID: 2
tabformat: '<prefix><player><suffix>'
chatformat: '<prefix><player><suffix> <gray>»</gray> <message>'
vip:
prefix: '<gradient:#ffd700:#fff700>[VIP]</gradient>'
suffix: ''
namecolor: 'GRAY'
sortID: 3
tabformat: '<prefix><player><suffix>'
chatformat: '<prefix><player><suffix> <gray>»</gray> <message>'
customhex:
prefix: '<#33ccff>[HexTag]</#33ccff>'
suffix: ''
namecolor: 'GRAY'
sortID: 10
tabformat: '<prefix><player><suffix>'
chatformat: '<prefix><player><suffix> <gray>»</gray> <message>'
default:
prefix: '<white>[Player]</white>'
suffix: ''
namecolor: 'WHITE'
sortID: 100
tabformat: '<prefix><player><suffix>'
chatformat: '<prefix><player><suffix> <gray>»</gray> <message>'
Placeholders
<prefix>: Replaced with the group prefix.<suffix>: Replaced with the group suffix.<player>: The player's name.<message>: The player's chat message (forchatformatonly).
Other keys
- namecolor: color of the player's name (RED, GRAY, BLUE).
- sortID: Lower numbers mean higher priority. A group with
sortID: 1is chosen over one withsortID: 100if a player is in both.
Contributing
Contributions are welcome. Please open issues or pull requests on GitHub.
License
LuckPrefix is licensed under the MIT License.
下载 LuckPrefix
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LuckPrefix
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LuckPrefix
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LuckPrefix
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LuckPrefix
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LuckPrefix
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LuckPrefix
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LuckPrefix
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LuckPrefix
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LuckPrefix
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
自定义你的Minecraft头像!
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
评论 0
登录后参与评分
还没有评论,来抢沙发吧