Chat Format
Format chat messages based on player groups
Поля
| Поле | Тип | По умолчанию | Описание | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fallbackFormat | String | <player>: <message> | Format used when no group matches the playerПлейсхолдеры | ||||||||||||||||
groups | List<GroupRule> | empty | Formatting rules applied based on player permissions
|
| Поле | Тип | По умолчанию | Описание |
|---|---|---|---|
permission | String? | — | Permission needed for players to use this rule |
priority | Int | 0 | Higher priority rules override lower ones |
format | String | <player>: <message> | Format applied to players in this groupПлейсхолдеры |
generalPermissionString?How to use it
The format is MiniMessage. Use <player> (the player name), <player_display> (the display name) and <message>; {player} and {message} are also accepted. The message itself is inserted as a component, so a player cannot inject tags or placeholders through it.
For each message the extension picks, among the groups whose permission the player has (an empty permission matches everyone), the one with the highest priority. If none matches, fallbackFormat is used. If generalPermission is set, players without it cannot chat. Use a single Chat Format entry.