Class ScriptCommandEvent

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

@Deprecated(since="2.17", forRemoval=true) public class ScriptCommandEvent extends CommandEvent
Deprecated, for removal: This API element is subject to removal in a future version.
There is no direct replacement for this class. The closest alternative is ScriptCommandExecutionEvent.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    ScriptCommandEvent(ScriptCommand scriptCommand, org.bukkit.command.CommandSender sender, String commandLabel, String rest)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static org.bukkit.event.HandlerList
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    org.bukkit.event.HandlerList
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Only accurate when this event is not delayed (yet)
    void
    setCooldownCancelled(boolean cooldownCancelled)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class CommandEvent

    getArgs, getCommand, getSender

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ScriptCommandEvent

      public ScriptCommandEvent(ScriptCommand scriptCommand, org.bukkit.command.CommandSender sender, String commandLabel, String rest)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      The script command executed.
    • getCommandLabel

      public String getCommandLabel()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      The used command label. This may be a command alias.
    • getArgsString

      public String getArgsString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      The arguments combined into one string.
      See Also:
    • isCooldownCancelled

      public boolean isCooldownCancelled()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Only accurate when this event is not delayed (yet)
    • setCooldownCancelled

      public void setCooldownCancelled(boolean cooldownCancelled)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      getHandlers in class CommandEvent
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Deprecated, for removal: This API element is subject to removal in a future version.