Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
Lets you customise player name colors across chat, tab list, and in-game nametags (i.e. the names above players' heads).
ChromaTag Plugin
ChromaTag is a Minecraft Paper 1.21.10 plugin that lets players customise their name colors across chat, tab list, and in-game nametags.
Features
- Set custom colors using hex codes (e.g.
#FF0000,FF0000) or predefined color names (e.g.red,dark_blue). - Colors appear in chat, tab list, and above player heads.
- Granular permissions for setting/resetting own or others' colors.
- Persistent color storage using SQLite.
- Simple API for other plugins to interact with player colors.
Installation
- Download the latest
.jarfile from the Releases page. - Place the
.jarfile in your Minecraft server'spluginsfolder. - Restart your server. The plugin will create a
plugins/ChromaTag/chromatag.dbfile to store colors.
Configuration
Player color data is stored in plugins/ChromaTag/chromatag.db.
Commands
/chromatag <color|#hex> [player]: Sets the target player's name color. If[player]is omitted, sets your own color.- Requires
chromatag.set.selfto set own color. - Requires
chromatag.set.otherto set another player's color.
- Requires
/chromatag reset [player]: Resets the target player's name color to default. If[player]is omitted, resets your own color.- Requires
chromatag.reset.selfto reset own color. - Requires
chromatag.reset.otherto reset another player's color.
- Requires
/chromatag getcolor <player>: Gets a player's color as a hex value (for example#FF5555). Works with offline players.- Requires
chromatag.getcolorpermission. - Returns
#FFFFFF(white) if the player has no custom color set.
- Requires
Aliases: /ct
Permissions
chromatag.use: Allows using ChromaTag commands and seeing tab completions (default: op)chromatag.set.self: Allows setting own name color (default: op)chromatag.set.other: Allows setting other players' name colors (default: op)chromatag.reset.self: Allows resetting own name color to default (default: op)chromatag.reset.other: Allows resetting other players' name colors to default (default: op)chromatag.getcolor: Allows getting player name colors as hex values (default: op)
API for Developers
Other plugins can interact with ChromaTag:
- Add
ChromaTagtodependorsoftdependin yourplugin.yml. - Get the API instance:
Plugin chromaTagPlugin = Bukkit.getPluginManager().getPlugin("ChromaTag"); if (chromaTagPlugin instanceof com.jellypudding.chromaTag.ChromaTag api) { // Use API methods } else { // ChromaTag not found or disabled } - Available methods:
api.getPlayerColor(UUID playerUUID): Returns theTextColorornull.api.setPlayerColor(UUID playerUUID, TextColor color): Sets the player's color. Returnsboolean(currently always true).api.resetPlayerColor(UUID playerUUID): Resets the player's color. Returnstrueif a color was removed,falseotherwise.
Predefined Color Names
black, dark_blue, dark_green, dark_aqua, dark_red, dark_purple, gold, gray, dark_gray, blue, green, aqua, red, light_purple, yellow, white
Support Me
Pages
Members
Owner