On Chat (Event) — Skript
Addon: Skript · Category: Event · Since: 1.4.1
Syntax
[on] chatDescription
Called whenever a player chats. Use <a href='#ExprChatFormat'>chat format</a> to change message format. Use <a href='#ExprChatRecipients'>chat recipients</a> to edit chat recipients.
Event Values
- event-player
- event-world
Examples
on chat:
if the player has permission "owner":
set the chat format to "<red>[player]<light gray>: <light red>[message]"
else if the player has permission "admin":
set the chat format to "<light red>[player]<light gray>: <orange>[message]"
else: # default message format
set the chat format to "<orange>[player]<light gray>: <white>[message]"