Class Commands

java.lang.Object
ch.njol.skript.command.Commands

public abstract class Commands extends Object
  • Field Details

    • m_too_many_arguments

      public static final ArgsMessage m_too_many_arguments
    • m_internal_error

      public static final Message m_internal_error
    • m_correct_usage

      public static final Message m_correct_usage
    • CONVERTER_NO_COMMAND_ARGUMENTS

      public static final int CONVERTER_NO_COMMAND_ARGUMENTS
      A Converter flag declaring that a Converter cannot be used for parsing command arguments.
      See Also:
    • currentArguments

      @Nullable public static @Nullable List<Argument<?>> currentArguments
  • Constructor Details

    • Commands

      public Commands()
  • Method Details

    • getScriptCommands

      public static Set<String> getScriptCommands()
    • getCommandMap

      @Nullable public static @Nullable org.bukkit.command.SimpleCommandMap getCommandMap()
    • escape

      public static String escape(String string)
    • unescape

      public static String unescape(String string)
    • getScriptCommand

      @Nullable public static @Nullable ScriptCommand getScriptCommand(String key)
    • skriptCommandExists

      @Deprecated public static boolean skriptCommandExists(String command)
      Deprecated.
    • scriptCommandExists

      public static boolean scriptCommandExists(String command)
    • registerCommand

      public static void registerCommand(ScriptCommand command)
    • unregisterCommands

      @Deprecated public static int unregisterCommands(File script)
      Deprecated.
    • unregisterCommand

      public static void unregisterCommand(ScriptCommand scriptCommand)
    • registerListeners

      public static void registerListeners()