Skip to content

Commit

Permalink
Move regex table below object example
Browse files Browse the repository at this point in the history
  • Loading branch information
rettichlp committed Sep 1, 2024
1 parent a003706 commit ed7af3a
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions docs/Manifest.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@
| Key | Description | Example value |
|-------------------|-----------------------------------------|---------------|
| `message_formats` | Regex for chat messages sent by players | see below |
```json
[
"^§[a-f0-9](?<level>\\d+)(| §[a-f0-9](?<rank>\\S+)) §e(?<sender>[a-zA-Z0-9_]{2,16}) §f(?<message>.*)$"
]
```

**Example color and formatting code regex:**

Expand All @@ -52,14 +57,6 @@
| Any color or formatting code in a row | zero or one: `(§[a-fk-or0-9])?`<br/>at least one: `(§[a-fk-or0-9])+`<br/>zero or more: `(§[a-fk-or0-9])*` |
| Player name | `[a-zA-Z0-9_]{2,16}` |

**Example chat object:**

```json
[
"^§[a-f0-9](?<level>\\d+)(| §[a-f0-9](?<rank>\\S+)) §e(?<sender>[a-zA-Z0-9_]{2,16}) §f(?<message>.*)$"
]
```

### Gamemode object

| Key | Description | Example value |
Expand Down

0 comments on commit ed7af3a

Please sign in to comment.