Package ch.njol.skript.command
Class Commands
java.lang.Object
ch.njol.skript.command.Commands
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classcopied from CraftBukkit (org.bukkit.craftbukkit.help.CommandAliasHelpTopic) -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intA Converter flag declaring that a Converter cannot be used for parsing command arguments.static final Messagestatic final Messagestatic final ArgsMessage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic @Nullable org.bukkit.command.SimpleCommandMapstatic @Nullable ScriptCommandgetScriptCommand(String key) static voidregisterCommand(ScriptCommand command) static voidstatic booleanscriptCommandExists(String command) static booleanskriptCommandExists(String command) Deprecated, for removal: This API element is subject to removal in a future version.static Stringstatic voidunregisterCommand(ScriptCommand scriptCommand) static intunregisterCommands(File script) Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
m_too_many_arguments
-
m_internal_error
-
m_correct_usage
-
CONVERTER_NO_COMMAND_ARGUMENTS
public static final int CONVERTER_NO_COMMAND_ARGUMENTSA Converter flag declaring that a Converter cannot be used for parsing command arguments.- See Also:
-
currentArguments
-
-
Constructor Details
-
Commands
public Commands()
-
-
Method Details
-
getScriptCommands
-
getCommandMap
@Nullable public static @Nullable org.bukkit.command.SimpleCommandMap getCommandMap() -
escape
-
unescape
-
getScriptCommand
-
skriptCommandExists
@Deprecated(since="2.8.0", forRemoval=true) public static boolean skriptCommandExists(String command) Deprecated, for removal: This API element is subject to removal in a future version.UsescriptCommandExists(String)instead. -
scriptCommandExists
-
registerCommand
-
unregisterCommands
Deprecated, for removal: This API element is subject to removal in a future version. -
unregisterCommand
-
registerListeners
public static void registerListeners()
-
scriptCommandExists(String)instead.