In server.properties
Set motd= in server.properties and restart the server. Write colour codes as \u00A7 plus the code, for example \u00A7a for green. Use \n for the second line. Hex colours don’t work here.
In plugins and proxies
Many plugins and proxies read MiniMessage. It supports hex colours and gradients, like <gradient:#5EF38C:#2E6B4A>My Server</gradient>. Others use & codes, like &a for green.
Colour and format codes
- Colours: 0 to 9 and a to f, for example a = green, c = red, e = yellow, f = white.
- Formats: l = bold, o = italic, n = underline, m = strikethrough, r = reset.
- Put the colour first: a colour code resets bold and italic.
Tips
- Keep each line under about 45 characters, or players see it cut off.
- Say what makes your server different, not just “Welcome”.
- Check the preview before you restart your server.