Triggers
trigger/chat
Chat Trigger
Fires when a player sends a chat message. Optionally filters by a message prefix.
Note: The underlying Bukkit AsyncPlayerChatEvent is used. Cancelling the event from within this graph will suppress the message from chat.
Outputs
| Name | Type | Description |
|---|---|---|
exec |
exec | Fires when the trigger conditions are met. |
player |
player | The player who sent the message. |
message |
string | The full chat message text. |
Properties
| Key | Type | Default | Description |
|---|---|---|---|
prefix |
string | "" |
Only fire when the message starts with this text. Leave blank to match all messages. |
Examples
Custom chat command via prefix
React when a player types "!heal".
- Set Prefix Filter to !heal
- Connect player → Player Set Health
- Set health to 20