Class PreCommandExecuteEvent
java.lang.Object
com.nickuc.login.api.event.internal.velocity.VelocityCancellableEvent
com.nickuc.login.api.event.velocity.command.PreCommandExecuteEvent
- All Implemented Interfaces:
CancellableEvent
,EventWithPlayer
Event triggered when an nLogin command is entered by a player.
-
Constructor Summary
ConstructorsConstructorDescriptionPreCommandExecuteEvent
(com.velocitypowered.api.proxy.Player player, CommandType type, String command, String[] extraArgs) -
Method Summary
Methods inherited from class com.nickuc.login.api.event.internal.velocity.VelocityCancellableEvent
isCancelled, setCancelled
-
Constructor Details
-
PreCommandExecuteEvent
public PreCommandExecuteEvent(com.velocitypowered.api.proxy.Player player, CommandType type, String command, String[] extraArgs)
-
-
Method Details
-
getPlayer
public com.velocitypowered.api.proxy.Player 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.
-