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

public class PreCommandExecuteEvent extends VelocityCancellableEvent implements EventWithPlayer
Event triggered when an nLogin command is entered by a player.
  • 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 interface EventWithPlayer
    • getType

      public CommandType getType()
      Returns the command type.
    • getCommand

      public String getCommand()
      Returns the command.
    • getExtraArgs

      public String[] getExtraArgs()
      Return the extra args. Sensitive information such as password will NOT be provided.