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

NameTypeDescription
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

KeyTypeDefaultDescription
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".

  1. Set Prefix Filter to !heal
  2. Connect player → Player Set Health
  3. Set health to 20