Skip to main content

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

VariableTypeDescription
*evSenderreference to CommandSender objectThe sender of the command.
$evCommandTypeCommandType enum valueThe type of the command that was executed.
*evCommandreference to ICommand objectThe command that was executed.
&evArgumentscollection of text valueThe arguments of the command.
$evExecutedSuccessfullybool valueWhether the command was executed successfully.
$evResponsetext valueThe response of the command.
$evCommandNametext valueGets the name or alias of the command that was executed.