public class PreCommandExecuteEvent extends BungeeCancellableEvent implements EventWithPlayer
Constructor and Description |
---|
PreCommandExecuteEvent(net.md_5.bungee.api.connection.ProxiedPlayer 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.
|
net.md_5.bungee.api.connection.ProxiedPlayer |
getPlayer()
Returns the player instance.
|
CommandType |
getType()
Returns the command type.
|
isCancelled, setCancelled
public PreCommandExecuteEvent(net.md_5.bungee.api.connection.ProxiedPlayer player, CommandType type, java.lang.String command, java.lang.String[] extraArgs)
public net.md_5.bungee.api.connection.ProxiedPlayer getPlayer()
getPlayer
in interface EventWithPlayer
public CommandType getType()
public java.lang.String getCommand()
public java.lang.String[] getExtraArgs()