---
url: https://lc.m1sk9.dev/docs/reference/message-format.md
---

# Message Format

You can customize the display format of chat messages in the `messageFormat` section of `config.yml`.

These are the only settings `/lc reload`  applies without a restart; every other section of `config.yml` is fixed when the server starts. See [Applying Changes](/docs/configuration#applying-changes).

## Placeholders

| Placeholder | Description | Available formats |
|-------------|-------------|-------------------|
| `{sender}` | Name of the message sender | All |
| `{recipient}` | Name of the message recipient | `directMessageFormat` |
| `{message}` | Message content | All |
| `{channel}` | Channel name | `channelMessageFormat` |
| `{server}` | Server name | `crossServerGlobalChatFormat` |
| `{world}`  | World the sender is in. For a direct message from another server, empty unless the sending server runs Paper v1.5.0+ and the proxy runs Velocity v1.3.1+ | `directMessageFormat`, `channelMessageFormat` |
| `{display_name}`  | Display name of the sender, including colors set by other plugins | `channelMessageFormat` |
| `{channel_id}`  | Channel ID | `channelMessageFormat` |
| `{role}`  | Sender's role in the channel (Owner / Moderator / Member) | `channelMessageFormat` |

## Format List

### `directMessageFormat`

The display format for direct messages sent via `/tell` or `/reply`.

**Default:**

```
§7[§e{sender} §7>> §e{recipient}§7] §f{message}
```

**Example:** \[Steve >> Alex] Hello!

### `channelMessageFormat`

The display format for messages sent in channel chat.

**Default:**

```
§7[§b#{channel}§7] §e{sender}: §f{message}
```

**Example:** \[#general] Steve: Hello!

### `crossServerGlobalChatFormat`

The display format for cross-server global chat when using Velocity integration.

**Default:**

```
§7[§6{server}§7] §e{sender}: §f{message}
```

**Example:** \[survival] Steve: Hello!

## Color Codes

You can use color codes with the Minecraft section sign (`§`).

| Code | Color |
|------|-------|
| `§0` | Black |
| `§1` | Dark blue |
| `§2` | Dark green |
| `§3` | Dark aqua |
| `§4` | Dark red |
| `§5` | Dark purple |
| `§6` | Gold |
| `§7` | Gray |
| `§8` | Dark gray |
| `§9` | Blue |
| `§a` | Green |
| `§b` | Aqua |
| `§c` | Red |
| `§d` | Pink |
| `§e` | Yellow |
| `§f` | White |

### Formatting Codes

| Code | Effect |
|------|--------|
| `§l` | **Bold** |
| `§o` | *Italic* |
| `§n` | Underline |
| `§m` | ~~Strikethrough~~ |
| `§k` | Obfuscated (characters change randomly) |
| `§r` | Reset |
