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.