跳到主要内容

Chat Format

Format chat messages based on player groups

字段

字段类型默认值描述
fallbackFormatString<player>: <message>Format used when no group matches the player占位符
groupsList<GroupRule>emptyFormatting rules applied based on player permissions
GroupRule(3)
字段类型默认值描述
permissionString?—Permission needed for players to use this rule
priorityInt0Higher priority rules override lower ones
formatString<player>: <message>Format applied to players in this group占位符
generalPermissionString?—Permission required to use any chat format

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.