Class ScriptCommandEvent

java.lang.Object
org.bukkit.event.Event
ch.njol.skript.command.CommandEvent
ch.njol.skript.command.ScriptCommandEvent

public class ScriptCommandEvent extends CommandEvent
  • Constructor Details

    • ScriptCommandEvent

      public ScriptCommandEvent(ScriptCommand scriptCommand, org.bukkit.command.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 org.bukkit.event.HandlerList getHandlers()
      Overrides:
      getHandlers in class CommandEvent
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()