CommandEvent is fired whenever a command is scheduled to be executed.
This event is fired during the invocation of CommandHandler#executeCommand(ICommandSender, String)
and ClientCommandHandler#executeCommand(ICommandSender, String).
command
contains the instance of ICommand which is representative of the currently executing command.
sender
contains the instance of ICommandSender for the given command sender.
parameters
contains the arguments passed for the command execution.
exception
begins null, but can be populated with an exception to be thrown within the command.
This event is
Cancelable
.
If the event is canceled, the execution of the command does not occur.
This event does not have a result.
HasResult
This event is fired on the
MinecraftForge#EVENT_BUS
.