Class PreCommandExecuteEvent

java.lang.Object
net.md_5.bungee.api.plugin.Event
All Implemented Interfaces:
CancellableEvent, EventWithPlayer, net.md_5.bungee.api.plugin.Cancellable

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