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
Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionScriptCommandEvent(ScriptCommand scriptCommand, CommandSender sender, String commandLabel, String rest) -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerListbooleanOnly accurate when this event is not delayed (yet)voidsetCooldownCancelled(boolean cooldownCancelled) Methods inherited from class ch.njol.skript.command.CommandEvent
getArgs, getCommand, getSenderMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
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
- 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
- Overrides:
getHandlersin classCommandEvent
-
getHandlerList
-