Setting the MOTD
Edit motd= in server.properties and restart. The StormNodes panel also has an MOTD editor with a live preview, which saves you from writing escape codes by hand.
Colour and format codes
Minecraft formats text with a section sign, §, followed by a code. In server.properties, write it as \u00A7 so the file encoding cannot mangle it. For example, \u00A76Storm\u00A7fSMP shows Storm in gold and SMP in white.
- 0 to 9 and a to f: colours, for example 6 gold, a green, b aqua, c red, e yellow, f white
- l bold, o italic, n underline, m strikethrough, k obfuscated
- r reset back to default formatting
- Put the colour code before format codes; a colour code resets formatting after it
Two lines
Add \n to start the second line. Each line has room for about 45 to 60 characters depending on letter width, and anything longer is cut off. Many owners use the first line for the name and the second for what is on offer right now.
Hex colours, gradients and centring
Vanilla server.properties only supports the sixteen classic colours. Hex colours and gradients need a plugin, such as MiniMOTD on Paper or Velocity, which uses MiniMessage tags like <gradient:gold:yellow>. These plugins also let you rotate several MOTDs and centre text.
What makes an MOTD work
Say what the server is in a few words, such as survival, SMP, modpack name or game mode, plus the version and one reason to join now. Avoid walls of symbols and all-caps; they look like spam on server lists.