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
| Variable | Type | Description |
|---|---|---|
$evMessage | text value | Gets or sets the message to be sent. |
*evSender | reference to CommandSender object | The CommandSender that is involved in the event. |
$evIsAllowed | bool value | Whether the event is allowed to run. |