Renk - 一个简单的颜色插件
Renk 是一款允许玩家自定义显示名称颜色的插件。它使用十六进制颜色代码,并将其转换为最接近的支持的 Minecraft 团队名称标签着色颜色。
功能
- 玩家可以使用命令更改或重置自己的颜色。
- 管理员可以设置其他玩家的颜色。
- 玩家的颜色会保存到 JSON 文件(
plugins/Renk/player_colors.json),并在他们加入时应用。
- 支持十六进制颜色代码(例如
#FF0000)和预定义的颜色名称(例如 red、blue、green)。
- 利用 MiniMessage 库来格式化颜色代码和消息。
- 使用记分板队伍(Scoreboard Teams)来近似显示玩家名称标签上的颜色。
- 配置文件(
config.yml)用于自定义消息。
命令
/renk <#hex | color_name>:将玩家自己的颜色更改为指定的十六进制颜色或预定义的颜色名称。示例:/renk #FF0000、/renk red。
/renk set <player> <#hex | color_name>:允许管理员设置另一名玩家的颜色。示例:/renk set Kikaru #00FF00、/renk set Kikaru green。
/renk reset:将玩家自己的颜色重置为默认值。
/renk reset <player>:允许管理员重置另一名玩家的颜色。
预定义颜色
以下颜色名称可代替十六进制代码使用:black、dark_blue、dark_green、dark_aqua、dark_red、dark_purple、gold、gray、dark_gray、blue、green、aqua、red、light_purple、yellow、white。
权限
renk.use:允许使用 /renk 命令。
renk.set.other:允许使用 /renk set 命令更改其他玩家的颜色。
renk.reset.other:允许使用 /renk reset 命令重置其他玩家的颜色。
配置
该插件使用位于 plugins/Renk/ 目录下的 config.yml 文件来存储可配置的消息。你可以通过修改此文件来自定义向玩家显示的消息。请使用 MiniMessage 颜色代码。
Renk - A Simple Color Plugin
Renk is a plugin that allows players to customize their display name color. It uses hex color codes and translates them to the closest supported Minecraft color for team-based name tag coloring.
Features
- Players can change or reset their color using commands.
- Admins can set the color of other players.
- Player colors are saved to a JSON file (
plugins/Renk/player_colors.json) and applied when they join.
- Supports hex color codes (e.g.,
#FF0000) and predefined color names (e.g., red, blue, green).
- Utilizes the MiniMessage library for formatting color codes and messages.
- Uses Scoreboard Teams to approximate the player's display name color on their nametag.
- Configuration file (
config.yml) for customizing messages.
Commands
/renk <#hex | color_name>: Changes the player's own color to the specified hex color or predefined color name. Examples: /renk #FF0000, /renk red.
/renk set <player> <#hex | color_name>: Allows admins to set the color of another player. Examples: /renk set Kikaru #00FF00, /renk set Kikaru green.
/renk reset: Resets the player's own color to the default.
/renk reset <player>: Allows admins to reset another player's color.
Predefined Colors
The following color names can be used instead of hex codes: black, dark_blue, dark_green, dark_aqua, dark_red, dark_purple, gold, gray, dark_gray, blue, green, aqua, red, light_purple, yellow, white.
Permissions
renk.use: Allows the use of the /renk command.
renk.set.other: Allows the use of the /renk set command to change the color of other players.
renk.reset.other: Allows the use of the /renk reset command to reset the color of other players.
Configuration
The plugin uses a config.yml file located in the plugins/Renk/ directory to store configurable messages. You can customize the messages that are displayed to players by modifying this file. Use color codes with MiniMessage.
评论 0
登录后参与评分
还没有评论,来抢沙发吧