Class CommandHandler

java.lang.Object
com.bencodez.simpleapi.command.CommandHandler
com.bencodez.advancedcore.api.command.CommandHandler
Direct Known Subclasses:
PlayerCommandHandler

public abstract class CommandHandler extends com.bencodez.simpleapi.command.CommandHandler
The Class CommandHandler.
  • Constructor Details

    • CommandHandler

      @Deprecated public CommandHandler()
      Deprecated.
      Use constructor with plugin parameter
      Instantiates a new command handler.
    • CommandHandler

      public CommandHandler(AdvancedCorePlugin plugin)
      Instantiates a new command handler.
      Parameters:
      plugin - the plugin
    • CommandHandler

      public CommandHandler(AdvancedCorePlugin plugin, String[] args, String perm)
      Instantiates a new command handler.
      Parameters:
      plugin - main pluginclass
      args - the args
      perm - the perm
    • CommandHandler

      public CommandHandler(AdvancedCorePlugin plugin, String[] args, String perm, String helpMessage)
      Instantiates a new command handler.
      Parameters:
      plugin - main pluginclass
      args - the args
      perm - the perm
      helpMessage - the help message
    • CommandHandler

      public CommandHandler(AdvancedCorePlugin plugin, String[] args, String perm, String helpMessage, boolean allowConsole)
      Instantiates a new command handler.
      Parameters:
      plugin - main pluginclass
      args - the args
      perm - the perm
      helpMessage - the help message
      allowConsole - the allow console
    • CommandHandler

      public CommandHandler(AdvancedCorePlugin plugin, String[] args, String perm, String helpMessage, boolean allowConsole, boolean forceConsole)
      Instantiates a new command handler.
      Parameters:
      plugin - main pluginclass
      args - the args
      perm - the perm
      helpMessage - the help message
      allowConsole - the allow console
      forceConsole - Option to force console only command
    • CommandHandler

      @Deprecated public CommandHandler(String[] args, String perm)
      Deprecated.
      Use constructor with plugin parameter
      Instantiates a new command handler.
      Parameters:
      args - the args
      perm - the permission
    • CommandHandler

      @Deprecated public CommandHandler(String[] args, String perm, String helpMessage)
      Deprecated.
      Use constructor with plugin parameter
      Instantiates a new command handler.
      Parameters:
      args - the args
      perm - the permission
      helpMessage - the help message
    • CommandHandler

      @Deprecated public CommandHandler(String[] args, String perm, String helpMessage, boolean allowConsole)
      Deprecated.
      Use constructor with plugin parameter
      Instantiates a new command handler.
      Parameters:
      args - the args
      perm - the permission
      helpMessage - the help message
      allowConsole - whether console is allowed
    • CommandHandler

      @Deprecated public CommandHandler(String[] args, String perm, String helpMessage, boolean allowConsole, boolean forceConsole)
      Deprecated.
      Use constructor with plugin parameter
      Instantiates a new command handler.
      Parameters:
      args - the args
      perm - the permission
      helpMessage - the help message
      allowConsole - whether console is allowed
      forceConsole - whether to force console only
  • Method Details

    • debug

      public void debug(String debug)
      Specified by:
      debug in class com.bencodez.simpleapi.command.CommandHandler
    • formatNoPerms

      public String formatNoPerms()
      Specified by:
      formatNoPerms in class com.bencodez.simpleapi.command.CommandHandler
    • formatNotNumber

      public String formatNotNumber()
      Specified by:
      formatNotNumber in class com.bencodez.simpleapi.command.CommandHandler
    • getBukkitScheduler

      public com.bencodez.simpleapi.scheduler.BukkitScheduler getBukkitScheduler()
      Specified by:
      getBukkitScheduler in class com.bencodez.simpleapi.command.CommandHandler
    • getHelpLine

      public String getHelpLine()
      Specified by:
      getHelpLine in class com.bencodez.simpleapi.command.CommandHandler
    • ignoreNumberCheck

      public CommandHandler ignoreNumberCheck()
      Ignores number check.
      Overrides:
      ignoreNumberCheck in class com.bencodez.simpleapi.command.CommandHandler
      Returns:
      the command handler