Skip to main content

SendingAdminChat

Gets called when the server is sending an Admin Chat message.

Start a script section

!-- OnEvent SendingAdminChat
-- require $evMessage *evSender $evIsAllowed

# Add your instructions here
  • Group: ServerEvents
  • Cancellable: Yes
  • Event data: SendingAdminChatEventArgs

Injected variables

VariableTypeDescription
$evMessagetext valueGets or sets the message to be sent.
*evSenderreference to CommandSender objectThe CommandSender that is involved in the event.
$evIsAllowedbool valueWhether the event is allowed to run.