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 Summary
ConstructorsConstructorDescriptionDeprecated.Use constructor with plugin parameterCommandHandler(AdvancedCorePlugin plugin) Instantiates a new command handler.CommandHandler(AdvancedCorePlugin plugin, String[] args, String perm) Instantiates a new command handler.CommandHandler(AdvancedCorePlugin plugin, String[] args, String perm, String helpMessage) Instantiates a new command handler.CommandHandler(AdvancedCorePlugin plugin, String[] args, String perm, String helpMessage, boolean allowConsole) Instantiates a new command handler.CommandHandler(AdvancedCorePlugin plugin, String[] args, String perm, String helpMessage, boolean allowConsole, boolean forceConsole) Instantiates a new command handler.CommandHandler(String[] args, String perm) Deprecated.Use constructor with plugin parameterCommandHandler(String[] args, String perm, String helpMessage) Deprecated.Use constructor with plugin parameterCommandHandler(String[] args, String perm, String helpMessage, boolean allowConsole) Deprecated.Use constructor with plugin parameterCommandHandler(String[] args, String perm, String helpMessage, boolean allowConsole, boolean forceConsole) Deprecated.Use constructor with plugin parameter -
Method Summary
Modifier and TypeMethodDescriptionvoidcom.bencodez.simpleapi.scheduler.BukkitSchedulerIgnores number check.Methods inherited from class com.bencodez.simpleapi.command.CommandHandler
addTabCompleteOption, addTabCompleteOption, argsMatch, execute, getArgs, getHelpLine, getHelpLine, getHelpLine, getHelpLineCommand, getHelpMessage, getPerm, getPlugin, getTabCompleteOptions, hasArg, hasPerm, isAdvancedCoreCommand, isAllowConsole, isAllowMultiplePermissions, isCommand, isForceConsole, isIgnoreNumberCheck, isPlayer, noConsole, parseInt, runCommand, sendMessage, sendMessage, sendMessageJson, sendMessageJson, setAdvancedCoreCommand, setAllowConsole, setAllowMultiplePermissions, setArgs, setForceConsole, setHelpMessage, setPerm, withArgs, withHelpMessage, withPerm, withPerm
-
Constructor Details
-
CommandHandler
Deprecated.Use constructor with plugin parameterInstantiates a new command handler. -
CommandHandler
Instantiates a new command handler.- Parameters:
plugin- the plugin
-
CommandHandler
Instantiates a new command handler.- Parameters:
plugin- main pluginclassargs- the argsperm- the perm
-
CommandHandler
Instantiates a new command handler.- Parameters:
plugin- main pluginclassargs- the argsperm- the permhelpMessage- the help message
-
CommandHandler
public CommandHandler(AdvancedCorePlugin plugin, String[] args, String perm, String helpMessage, boolean allowConsole) Instantiates a new command handler.- Parameters:
plugin- main pluginclassargs- the argsperm- the permhelpMessage- the help messageallowConsole- 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 pluginclassargs- the argsperm- the permhelpMessage- the help messageallowConsole- the allow consoleforceConsole- Option to force console only command
-
CommandHandler
Deprecated.Use constructor with plugin parameterInstantiates a new command handler.- Parameters:
args- the argsperm- the permission
-
CommandHandler
Deprecated.Use constructor with plugin parameterInstantiates a new command handler.- Parameters:
args- the argsperm- the permissionhelpMessage- the help message
-
CommandHandler
@Deprecated public CommandHandler(String[] args, String perm, String helpMessage, boolean allowConsole) Deprecated.Use constructor with plugin parameterInstantiates a new command handler.- Parameters:
args- the argsperm- the permissionhelpMessage- the help messageallowConsole- whether console is allowed
-
CommandHandler
@Deprecated public CommandHandler(String[] args, String perm, String helpMessage, boolean allowConsole, boolean forceConsole) Deprecated.Use constructor with plugin parameterInstantiates a new command handler.- Parameters:
args- the argsperm- the permissionhelpMessage- the help messageallowConsole- whether console is allowedforceConsole- whether to force console only
-
-
Method Details
-
debug
- Specified by:
debugin classcom.bencodez.simpleapi.command.CommandHandler
-
formatNoPerms
- Specified by:
formatNoPermsin classcom.bencodez.simpleapi.command.CommandHandler
-
formatNotNumber
- Specified by:
formatNotNumberin classcom.bencodez.simpleapi.command.CommandHandler
-
getBukkitScheduler
public com.bencodez.simpleapi.scheduler.BukkitScheduler getBukkitScheduler()- Specified by:
getBukkitSchedulerin classcom.bencodez.simpleapi.command.CommandHandler
-
getHelpLine
- Specified by:
getHelpLinein classcom.bencodez.simpleapi.command.CommandHandler
-
ignoreNumberCheck
Ignores number check.- Overrides:
ignoreNumberCheckin classcom.bencodez.simpleapi.command.CommandHandler- Returns:
- the command handler
-