PlayerSendCommandEvent

Documentation for the PlayerSendCommandEvent event in the Irminsul game server API

PlayerSendCommandEvent is a cancellabe event fired when a player attempts to execute a chat command.

This event is fired regardless of whether the command will be successfully executed. For an event actually fired when a command is executed, use PlayerExecuteCommandEvent instead, which is fired later 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 String

The command provided by the player. Guaranteed non-null.

args

final String[]

A list of command arguments provided by the player, which may be empty. Guaranteed non-null.

Last updated