CommandExecuted
Gets called when the server has executed a command.
Start a script section
!-- OnEvent CommandExecuted
-- require *evSender $evCommandType *evCommand &evArguments $evExecutedSuccessfully $evResponse $evCommandName
# Add your instructions here
- Group: ServerEvents
- Cancellable: No
- Event data:
CommandExecutedEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
*evSender | reference to CommandSender object | The sender of the command. |
$evCommandType | CommandType enum value | The type of the command that was executed. |
*evCommand | reference to ICommand object | The command that was executed. |
&evArguments | collection of text value | The arguments of the command. |
$evExecutedSuccessfully | bool value | Whether the command was executed successfully. |
$evResponse | text value | The response of the command. |
$evCommandName | text value | Gets the name or alias of the command that was executed. |