How to set your Minecraft server MOTD
- Build the MOTD above and open the server.properties tab, then click Copy.
- Stop the server. In the server folder (or your panel's file manager on Pterodactyl), open
server.properties. - Replace the whole
motd=line with the copied line and save the file. - Start the server and refresh the multiplayer list. Use our Minecraft server status checker to see the live MOTD exactly as other players get it.
On Paper, Purpur or Velocity with MiniMOTD, paste the MiniMessage output into the plugin's config instead; it supports hex colours and gradients. On a Bedrock Dedicated Server the setting is server-name, and it shows a single line.
Minecraft color codes
Every colour code is a section sign (§) or, in most plugins, an ampersand (&) followed by one character. JSON and MiniMessage use the names in the last column. Bedrock draws some colours in slightly different shades.
| Colour | § code | & code | Java hex | Bedrock hex | JSON / MiniMessage |
|---|---|---|---|---|---|
| Black | §0 | &0 | #000000 | #000000 | black |
| Dark Blue | §1 | &1 | #0000AA | #0000AA | dark_blue |
| Dark Green | §2 | &2 | #00AA00 | #00AA00 | dark_green |
| Dark Aqua | §3 | &3 | #00AAAA | #00AAAA | dark_aqua |
| Dark Red | §4 | &4 | #AA0000 | #AA0000 | dark_red |
| Dark Purple | §5 | &5 | #AA00AA | #AA00AA | dark_purple |
| Gold | §6 | &6 | #FFAA00 | #FFAA00 | gold |
| Gray | §7 | &7 | #AAAAAA | #C5C5C5 | gray |
| Dark Gray | §8 | &8 | #555555 | #545454 | dark_gray |
| Blue | §9 | &9 | #5555FF | #447FFF | blue |
| Green | §a | &a | #55FF55 | #54FF54 | green |
| Aqua | §b | &b | #55FFFF | #54FFFF | aqua |
| Red | §c | &c | #FF5555 | #FF5454 | red |
| Light Purple | §d | &d | #FF55FF | #FF54FF | light_purple |
| Yellow | §e | &e | #FFFF55 | #FFFF54 | yellow |
| White | §f | &f | #FFFFFF | #FFFFFF | white |
Formatting codes
In Java Edition a colour code cancels any formatting before it, so always write the colour first: &c&l gives bold red, while &l&c gives plain red.
| Format | § code | & code | Effect | Bedrock |
|---|---|---|---|---|
| Obfuscated | §k | &k | Random scrambling characters | Yes |
| Bold | §l | &l | Bold text (1px wider per character) | Yes |
| Strikethrough | §m | &m | Line through the text | No (§m is a colour on Bedrock) |
| Underlined | §n | &n | Line under the text | No (§n is a colour on Bedrock) |
| Italic | §o | &o | Slanted text | Yes |
| Reset | §r | &r | Clears colour and formatting | Yes |
Bedrock-only colour codes
Bedrock Edition adds these extra colours. Java shows them as plain text, and on Bedrock §m and §n are colours rather than strikethrough and underline. Values are from the Minecraft Wiki.
| Colour | § code | Hex |
|---|---|---|
| Minecoin Gold | §g | #EFCE16 |
| Material Quartz | §h | #D9CCB8 |
| Material Iron | §i | #A9B4B7 |
| Material Netherite | §j | #8F727D |
| Material Redstone | §m | #EE222C |
| Material Copper | §n | #C87363 |
| Material Gold | §p | #FFBF1E |
| Material Emerald | §q | #13A045 |
| Material Diamond | §s | #5FECFF |
| Material Lapis | §t | #577BFF |
| Material Amethyst | §u | #B66CDD |
| Material Resin | §v | #FF6A00 |
| Party Blue | §w | #8BB3FF |
Where you can use colour codes
- Java: server.properties, plugin configs, resource packs, pack.mcmeta and commands like /tellraw. Typing § in chat disconnects you.
- Bedrock: almost every text box, including chat, signs, books, anvils and name tags.
- Plugins: most (EssentialsX, LuckPerms prefixes, DeluxeMenus) read & codes; modern Paper plugins read MiniMessage.
MOTD tips that get more joins
- Line 1: server name and version. Line 2: what is new this week.
- Keep each line under the width counter; cut-off text looks broken.
- Use two or three colours, not sixteen. Bold only the name.
- Add a custom 64×64 server icon so you stand out in the list.