Class CommandExecuteEvent

java.lang.Object
org.bukkit.event.Event
de.marcely.bedwars.api.event.CommandExecuteEvent
All Implemented Interfaces:
Cancellable

public class CommandExecuteEvent extends Event implements Cancellable
Gets called when a player runs a bedwars subcommand.

This event isn't getting called when the user e.g. doesn't have the perms.

  • Constructor Details

  • Method Details

    • getCommandSender

      public CommandSender getCommandSender()
      Returns the person/sender who executed the command
      Returns:
      The sender who fired the command
    • getCommand

      public SubCommand getCommand()
      The subcommand that has been executed
      Returns:
      The command
    • getLabel

      public String getLabel()
      Returns the name or alias that was used to access the command
      Returns:
      The label that was used by the sender
    • getArguments

      public String[] getArguments()
      Returns the arguments that were included by the sender.
      Returns:
      The arguments given by the sender
    • setCancelled

      public void setCancelled(boolean bool)
      Specified by:
      setCancelled in interface Cancellable
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface Cancellable
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()