The MOTD is the short message shown under your server's name in the multiplayer list. On a Java server you set it with the motd line in server.properties, and you color it with formatting codes: the section sign § followed by one character. In server.properties the section sign is written as §.
Set the MOTD in server.properties
- Stop the server.
- Open
server.propertiesin the server folder. - Find the line that starts with
motd=. - Replace the text after
=with your message. - Save the file and start the server.
The default is:
motd=A Minecraft Server
Color codes
| Code | Color | Code | Color |
|---|---|---|---|
§0 |
Black | §8 |
Dark gray |
§1 |
Dark blue | §9 |
Blue |
§2 |
Dark green | §a |
Green |
§3 |
Dark aqua | §b |
Aqua |
§4 |
Dark red | §c |
Red |
§5 |
Dark purple | §d |
Light purple |
§6 |
Gold | §e |
Yellow |
§7 |
Gray | §f |
White |
Format codes
| Code | Effect |
|---|---|
§l |
Bold |
§o |
Italic |
§n |
Underline |
§m |
Strikethrough |
§k |
Obfuscated (scrambled characters) |
§r |
Reset color and formatting |
A working two-line example
The MOTD has two lines. Use \n to start the second one.
motd=§6§lCedar Valley §r§7Survival 1.21\n§aNew season open now
This shows "Cedar Valley" in bold gold, "Survival 1.21" in gray, and a green second line.
Common mistakes
- Putting the format before the color. On Java, a color code clears earlier formatting. Write the color first, then the format:
§6§l, not§l§6. - Forgetting to reset. Bold and other formats continue until a color code or
§r. - Using
&in server.properties. The ampersand form (&6) belongs to plugins that translate it for you. The vanillamotdline only understands the section sign. - Making it too long. Text that does not fit on a line is cut off in the server list. Keep each line short and check it in the game.
- Expecting hex colors. The
motdline supports the 16 legacy colors. Gradients and RGB colors need a plugin or proxy that sends a richer MOTD to newer clients.
Bedrock servers
Bedrock Dedicated Server does not use motd. The name shown in the server list comes from the server-name line in its server.properties, and it cannot contain semicolons.
Preview before you restart
Restarting a server to test each change is slow. The Minecraft color and format codes tool previews legacy colors and copies the code in the form you need, including the § escape for server.properties.
Once your MOTD looks right, a matching image helps on listing sites: the server banner generator exports a static banner, and you can add your server to MinecraftCave for free.