Class PreCommandExecuteEvent
java.lang.Object
org.bukkit.event.Event
com.nickuc.login.api.event.internal.bukkit.BukkitEvent
com.nickuc.login.api.event.internal.bukkit.BukkitCancellableEvent
com.nickuc.login.api.event.bukkit.command.PreCommandExecuteEvent
- All Implemented Interfaces:
CancellableEvent,EventWithPlayer,org.bukkit.event.Cancellable
Event triggered when an nLogin command is entered by a player.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionPreCommandExecuteEvent(org.bukkit.entity.Player player, CommandType type, String command, String[] extraArgs) -
Method Summary
Methods inherited from class com.nickuc.login.api.event.internal.bukkit.BukkitCancellableEvent
isCancelled, setCancelledMethods inherited from class com.nickuc.login.api.event.internal.bukkit.BukkitEvent
getHandlerList, getHandlersMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PreCommandExecuteEvent
public PreCommandExecuteEvent(org.bukkit.entity.Player player, CommandType type, String command, String[] extraArgs)
-
-
Method Details
-
getPlayer
public org.bukkit.entity.Player getPlayer()Returns the player instance.- Specified by:
getPlayerin interfaceEventWithPlayer
-
getType
Returns the command type. -
getCommand
Returns the command. -
getExtraArgs
Return the extra args. Sensitive information such as password will NOT be provided.
-