Перейти к основному содержимому

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.