Where these codes work
- server.properties — the
motdfield, shown in the multiplayer server list. - Plugin configs — EssentialsX, chat plugins, sign plugins and most others use the
&variant in their YAML config files. - Commands —
/tellraw,/titleand book/sign NBT typically want the JSON text component form.
MOTD length limits
Vanilla clients wrap the MOTD at roughly 60 characters per line and show two lines before truncating — color codes themselves don't count toward the visible character limit, but each one still takes up bytes in the file, so keep formatting purposeful rather than piling on every color at once.