Package ch.njol.skript.command
Class ScriptCommandEvent
java.lang.Object
org.bukkit.event.Event
ch.njol.skript.command.CommandEvent
ch.njol.skript.command.ScriptCommandEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionScriptCommandEvent
(ScriptCommand scriptCommand, org.bukkit.command.CommandSender sender, String commandLabel, String rest) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
boolean
Only accurate when this event is not delayed (yet)void
setCooldownCancelled
(boolean cooldownCancelled) Methods inherited from class ch.njol.skript.command.CommandEvent
getArgs, getCommand, getSender
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
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
- Returns:
- The script command executed.
-
getCommandLabel
- Returns:
- The used command label. This may be a command alias.
-
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 classCommandEvent
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-