Guides / server.properties
Minecraft server MOTD: colours, formatting and two lines
Add colours, bold text and a second line to your Minecraft server's MOTD in server.properties.
Updated
The MOTD is the message shown under your server's name in the multiplayer list. You set it with motd in server.properties.
Colours and formatting
Minecraft uses the section sign § followed by a code:
§0black,§1dark blue,§2dark green,§3dark aqua§4dark red,§5purple,§6gold,§7grey§8dark grey,§9blue,§agreen,§baqua§cred,§dpink,§eyellow,§fwhite§lbold,§oitalic,§nunderline,§mstrikethrough,§rreset
Example: §a§lMy Server §r§7- Survival SMP
Writing § in the file
server.properties is read in Java's properties format, which can garble the § character. The safe way is to write it as \u00a7:
motd=\u00a7a\u00a7lMy Server \u00a7r\u00a77- Survival SMP
The server.properties generator does this for you: type § normally and the file comes out correctly escaped.
Two lines
Add \n where the second line should start:
motd=\u00a7aMy Server\n\u00a77Survival SMP
Length
Each line fits about 45–60 characters before it's cut off, depending on the letters. Keep it short and put the most important part first.