About Coloured Prefixes
Overview
ColouredPrefixes is a Rust plugin that lets you manage custom chat prefixes with support for solid colors, gradients, and formatting (bold, italic, underline, size). It works standalone, or alongside BetterChat and ColouredChat. An admin CUI is included for easier setup and editing of prefixes.
Features
Solid or multi-stop gradient prefixes
Per-prefix suffix text (e.g., space, dot, symbol)
Priority system: multiple groups can have multiple prefixes, ordered by priority
Per-prefix username colouring (solid or gradient)
Works standalone in vanilla chat (no dependency needed)
Works with BetterChat (can hide its titles or replace them)
Works with ColouredChat for gradient injection
Admin CUI with background image support for managing groups
Integration
Which system is used depends on your config:
"UseBetterChatPrefix": true - Prefixes are passed to BetterChat
"UseColouredChatHook": true - Prefixes are injected into ColouredChat
"UseVanillaChatHook": true - Prefixes and/or coloured usernames show in vanilla chat
BetterChat takes priority if both are enabled.
Commands
All commands require the permission:
colouredprefixes.admin
Text commands:
/cprefix add <entryId> <group> <prefix text> – create a new prefix
/cprefix remove <entryId> – remove a prefix
/cprefix <entryId> #RRGGBB – set solid colour
/cprefix <entryId> gradient #C1 #C2 [#C3] [#C4] – set gradient (2–4 colours)
/cprefix <entryId> rainbow – set rainbow gradient
/cprefix suffix <entryId> <text> – set suffix (space, dot, symbol)
/cprefix setgroup <entryId> <group> – assign group
/cprefix setprio <entryId> <number> – change priority
/cprefix sort – renumber all priorities
/cprefix namecolor <entryId> <on|off> – toggle using prefix colour/gradient for username
/cprefix reload – reload config/data
CUI:
/cprefixui – open the prefix editor with list, paging, and configuration panels
Notes:
Prefixes are stored in:
oxide/data/ColouredPrefixes.json.
Config options (in oxide/config/ColouredPrefixes.json) control defaults, BetterChat/ColouredChat integration, and UI appearance.
Between Prefixes adds spacing between multiple prefixes; each prefix can also have its own Suffix Text.
If you wish to quickly get color codes you can use this website Rust Color Formatting
This plugin was developed by ✯Mr.Kingpin✯ with AI-assisted coding for testing and improvements. All rights reserved.