Class ScriptCommandEvent


public class ScriptCommandEvent extends CommandEvent
  • Constructor Details

    • ScriptCommandEvent

      public ScriptCommandEvent(ScriptCommand scriptCommand, CommandSender sender, String commandLabel, String rest)
      Parameters:
      scriptCommand - The script command executed.
      sender - The executor of this script command.
      commandLabel - The command name (may be the used alias)
      rest - The rest of the command string (the arguments)
  • Method Details

    • getScriptCommand

      public ScriptCommand getScriptCommand()
      Returns:
      The script command executed.
    • getCommandLabel

      public String getCommandLabel()
      Returns:
      The used command label. This may be a command alias.
    • getArgsString

      public String getArgsString()
      Returns:
      The arguments combined into one string.
      See Also:
    • isCooldownCancelled

      public boolean isCooldownCancelled()
      Only accurate when this event is not delayed (yet)
    • setCooldownCancelled

      public void setCooldownCancelled(boolean cooldownCancelled)
    • getHandlers

      public HandlerList getHandlers()
      Overrides:
      getHandlers in class CommandEvent
    • getHandlerList

      public static HandlerList getHandlerList()