Class PreCommandExecuteEvent
java.lang.Object
net.md_5.bungee.api.plugin.Event
com.nickuc.login.api.event.internal.bungee.BungeeEvent
com.nickuc.login.api.event.internal.bungee.BungeeCancellableEvent
com.nickuc.login.api.event.bungee.command.PreCommandExecuteEvent
- All Implemented Interfaces:
CancellableEvent
,EventWithPlayer
,net.md_5.bungee.api.plugin.Cancellable
Event triggered when an nLogin command is entered by a player.
-
Constructor Summary
ConstructorDescriptionPreCommandExecuteEvent
(net.md_5.bungee.api.connection.ProxiedPlayer player, CommandType type, String command, String[] extraArgs) -
Method Summary
Methods inherited from class com.nickuc.login.api.event.internal.bungee.BungeeCancellableEvent
isCancelled, setCancelled
Methods inherited from class net.md_5.bungee.api.plugin.Event
callEvent, postCall
-
Constructor Details
-
PreCommandExecuteEvent
public PreCommandExecuteEvent(net.md_5.bungee.api.connection.ProxiedPlayer player, CommandType type, String command, String[] extraArgs)
-
-
Method Details
-
getPlayer
public net.md_5.bungee.api.connection.ProxiedPlayer getPlayer()Returns the player instance.- Specified by:
getPlayer
in interfaceEventWithPlayer
-
getType
Returns the command type. -
getCommand
Returns the command. -
getExtraArgs
Return the extra args. Sensitive information such as password will NOT be provided.
-