PlayerExecuteCommandEvent
Documentation for the PlayerExecuteCommandEvent event in the Irminsul game server API
PlayerExecuteCommandEvent is a cancellabe event fired when a player executes a chat command.
This event is fired only if the command is about to be successfully executed. For an event fired when a command is attempted, use PlayerSendCommandEvent instead, which is fired earlier than this event.
Fields
cancelled
boolean, inherited
Whether this event has been cancelled
sender
final io.irminsul.common.game.player.Player
The player sending the command. Guaranteed non-null.
command
final io.irminsul.common.game.command.CommandHandler
The CommandHandler the player is about to invoke. Guaranteed non-null.
args
final String[]
A list of command arguments provided by the player, which may be empty. Guaranteed non-null.
Last updated