public class PreCommandExecuteEvent extends VelocityCancellableEvent implements EventWithPlayer
Constructor and Description |
---|
PreCommandExecuteEvent(com.velocitypowered.api.proxy.Player player,
CommandType type,
java.lang.String command,
java.lang.String[] extraArgs) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCommand()
Returns the command.
|
java.lang.String[] |
getExtraArgs()
Return the extra args.
|
com.velocitypowered.api.proxy.Player |
getPlayer()
Returns the player instance.
|
CommandType |
getType()
Returns the command type.
|
isCancelled, setCancelled
public PreCommandExecuteEvent(com.velocitypowered.api.proxy.Player player, CommandType type, java.lang.String command, java.lang.String[] extraArgs)
public com.velocitypowered.api.proxy.Player getPlayer()
getPlayer
in interface EventWithPlayer
public CommandType getType()
public java.lang.String getCommand()
public java.lang.String[] getExtraArgs()