Styles
styles.yml lets you define reusable named colors and formats once, then
reference them from any message with {style:name}. Change a style in one place
and every message that uses it updates, so you never have to edit the same hex
code across every language file.
How it works
# styles.yml
styles:
prefix: "&6&l[Bounty] &r"
error: "&c"
success: "&a"
warning: "&e"
info: "&7"
muted: "&8"
accent: "&6"
value: "&e"
header: "&6&l"
Use a style in any message:
messages:
bounty-created: "{style:success}Placed a bounty on {target} for {amount}!"
{style:name} is expanded before colors are rendered, so a style can carry
color, formatting, or both. Unknown names are left as-is, so a typo like
{style:eror} stays visible instead of disappearing.
Style values
A style value uses the same formatting syntax as messages:
- Legacy codes:
&a,&c,&l,&7 - Hex:
#{RRGGBB}or&#RRGGBB - Gradient:
<GRADIENT:FF0000>text</GRADIENT:00FF00> - Rainbow:
<RAINBOW5>text</RAINBOW> - Palette codes:
&s0..&q4(see Custom Colors)
Reloading
Run /bounty reload to apply changes to styles.yml without restarting.