Package co.aikar.commands
Class BukkitCommandManager
java.lang.Object
co.aikar.commands.CommandManager<org.bukkit.command.CommandSender,BukkitCommandIssuer,org.bukkit.ChatColor,BukkitMessageFormatter,BukkitCommandExecutionContext,BukkitConditionContext>
co.aikar.commands.BukkitCommandManager
public class BukkitCommandManager
extends co.aikar.commands.CommandManager<org.bukkit.command.CommandSender,BukkitCommandIssuer,org.bukkit.ChatColor,BukkitMessageFormatter,BukkitCommandExecutionContext,BukkitConditionContext>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected BukkitCommandCompletionsprotected BukkitCommandContextsprotected BukkitLocalesfinal Integerfinal Integerprotected final org.bukkit.plugin.Pluginprotected Map<String,BukkitRootCommand> Fields inherited from class co.aikar.commands.CommandManager
conditions, defaultExceptionHandler, defaultFormatter, defaultHelpPerPage, dependencies, formatters, helpFormatter, issuersLocale, localeChangedCallbacks, replacements, rootCommands, supportedLanguages, usePerIssuerLocale -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCommandContext(co.aikar.commands.RegisteredCommand command, co.aikar.commands.CommandParameter parameter, co.aikar.commands.CommandIssuer sender, List<String> args, int i, Map<String, Object> passedArgs) createCompletionContext(co.aikar.commands.RegisteredCommand command, co.aikar.commands.CommandIssuer sender, String input, String config, String[] args) createConditionContext(co.aikar.commands.CommandIssuer issuer, String config) co.aikar.commands.RegisteredCommandcreateRegisteredCommand(co.aikar.commands.BaseCommand command, String cmdName, Method method, String prefSubCommand) co.aikar.commands.RootCommandcreateRootCommand(String cmd) co.aikar.commands.CommandCompletions<BukkitCommandCompletionContext>co.aikar.commands.CommandContexts<BukkitCommandExecutionContext>getCommandIssuer(Object issuer) getCommandPrefix(co.aikar.commands.CommandIssuer issuer) org.bukkit.plugin.PluginCollection<co.aikar.commands.RootCommand>co.aikar.timings.lib.TimingManagerDeprecated.protected booleanhandleUncaughtException(co.aikar.commands.BaseCommand scope, co.aikar.commands.RegisteredCommand registeredCommand, co.aikar.commands.CommandIssuer sender, List<String> args, Throwable t) booleanbooleanisCommandIssuer(Class<?> type) voidvoidregisterCommand(co.aikar.commands.BaseCommand command) voidregisterCommand(co.aikar.commands.BaseCommand command, boolean force) setPlayerLocale(org.bukkit.entity.Player player, Locale locale) voidunregisterCommand(co.aikar.commands.BaseCommand command) voidunregisterCommand(BukkitRootCommand command) Deprecated.Use unregisterCommand(BaseCommand) - this will be visibility reduced later.voidbooleanusePerIssuerLocale(boolean usePerIssuerLocale, boolean autoDetectFromClient) Methods inherited from class co.aikar.commands.CommandManager
addSupportedLanguage, enableUnstableAPI, formatMessage, generateCommandHelp, generateCommandHelp, generateCommandHelp, generateCommandHelp, getCommandConditions, getCommandReplacements, getCurrentCommandIssuer, getCurrentCommandManager, getCurrentCommandOperationContext, getDefaultExceptionHandler, getDefaultFormatter, getDefaultHelpPerPage, getFormat, getHelpFormatter, getIssuerLocale, getRootCommand, getSupportedLanguages, hasPermission, hasPermission, isLoggingUnhandledExceptions, log, notifyLocaleChange, obtainRootCommand, onLocaleChange, registerDependency, registerDependency, sendMessage, sendMessage, setDefaultExceptionHandler, setDefaultExceptionHandler, setDefaultFormatter, setDefaultHelpPerPage, setFormat, setFormat, setFormat, setHelpFormatter, setIssuerLocale, usePerIssuerLocale, usingPerIssuerLocale
-
Field Details
-
plugin
-
mcMinorVersion
-
mcPatchVersion
-
knownCommands
-
registeredCommands
-
contexts
-
completions
-
locales
-
issuersLocaleString
-
autoDetectFromClient
-
-
Constructor Details
-
BukkitCommandManager
-
-
Method Details
-
getPlugin
-
isCommandIssuer
- Specified by:
isCommandIssuerin classco.aikar.commands.CommandManager<org.bukkit.command.CommandSender,BukkitCommandIssuer, org.bukkit.ChatColor, BukkitMessageFormatter, BukkitCommandExecutionContext, BukkitConditionContext>
-
getCommandContexts
- Specified by:
getCommandContextsin classco.aikar.commands.CommandManager<org.bukkit.command.CommandSender,BukkitCommandIssuer, org.bukkit.ChatColor, BukkitMessageFormatter, BukkitCommandExecutionContext, BukkitConditionContext>
-
getCommandCompletions
- Specified by:
getCommandCompletionsin classco.aikar.commands.CommandManager<org.bukkit.command.CommandSender,BukkitCommandIssuer, org.bukkit.ChatColor, BukkitMessageFormatter, BukkitCommandExecutionContext, BukkitConditionContext>
-
getLocales
- Specified by:
getLocalesin classco.aikar.commands.CommandManager<org.bukkit.command.CommandSender,BukkitCommandIssuer, org.bukkit.ChatColor, BukkitMessageFormatter, BukkitCommandExecutionContext, BukkitConditionContext>
-
hasRegisteredCommands
- Specified by:
hasRegisteredCommandsin classco.aikar.commands.CommandManager<org.bukkit.command.CommandSender,BukkitCommandIssuer, org.bukkit.ChatColor, BukkitMessageFormatter, BukkitCommandExecutionContext, BukkitConditionContext>
-
registerCommand
-
registerCommand
- Specified by:
registerCommandin classco.aikar.commands.CommandManager<org.bukkit.command.CommandSender,BukkitCommandIssuer, org.bukkit.ChatColor, BukkitMessageFormatter, BukkitCommandExecutionContext, BukkitConditionContext>
-
unregisterCommand
-
unregisterCommand
Deprecated.Use unregisterCommand(BaseCommand) - this will be visibility reduced later.- Parameters:
command-
-
unregisterCommands
-
setPlayerLocale
-
getTimings
Deprecated. -
getScheduler
-
createRootCommand
- Specified by:
createRootCommandin classco.aikar.commands.CommandManager<org.bukkit.command.CommandSender,BukkitCommandIssuer, org.bukkit.ChatColor, BukkitMessageFormatter, BukkitCommandExecutionContext, BukkitConditionContext>
-
getRegisteredRootCommands
- Specified by:
getRegisteredRootCommandsin classco.aikar.commands.CommandManager<org.bukkit.command.CommandSender,BukkitCommandIssuer, org.bukkit.ChatColor, BukkitMessageFormatter, BukkitCommandExecutionContext, BukkitConditionContext>
-
getCommandIssuer
- Specified by:
getCommandIssuerin classco.aikar.commands.CommandManager<org.bukkit.command.CommandSender,BukkitCommandIssuer, org.bukkit.ChatColor, BukkitMessageFormatter, BukkitCommandExecutionContext, BukkitConditionContext>
-
createCommandContext
public BukkitCommandExecutionContext createCommandContext(co.aikar.commands.RegisteredCommand command, co.aikar.commands.CommandParameter parameter, co.aikar.commands.CommandIssuer sender, List<String> args, int i, Map<String, Object> passedArgs) - Specified by:
createCommandContextin classco.aikar.commands.CommandManager<org.bukkit.command.CommandSender,BukkitCommandIssuer, org.bukkit.ChatColor, BukkitMessageFormatter, BukkitCommandExecutionContext, BukkitConditionContext>
-
createCompletionContext
public BukkitCommandCompletionContext createCompletionContext(co.aikar.commands.RegisteredCommand command, co.aikar.commands.CommandIssuer sender, String input, String config, String[] args) - Specified by:
createCompletionContextin classco.aikar.commands.CommandManager<org.bukkit.command.CommandSender,BukkitCommandIssuer, org.bukkit.ChatColor, BukkitMessageFormatter, BukkitCommandExecutionContext, BukkitConditionContext>
-
createRegisteredCommand
public co.aikar.commands.RegisteredCommand createRegisteredCommand(co.aikar.commands.BaseCommand command, String cmdName, Method method, String prefSubCommand) - Overrides:
createRegisteredCommandin classco.aikar.commands.CommandManager<org.bukkit.command.CommandSender,BukkitCommandIssuer, org.bukkit.ChatColor, BukkitMessageFormatter, BukkitCommandExecutionContext, BukkitConditionContext>
-
createConditionContext
public BukkitConditionContext createConditionContext(co.aikar.commands.CommandIssuer issuer, String config) - Overrides:
createConditionContextin classco.aikar.commands.CommandManager<org.bukkit.command.CommandSender,BukkitCommandIssuer, org.bukkit.ChatColor, BukkitMessageFormatter, BukkitCommandExecutionContext, BukkitConditionContext>
-
log
- Specified by:
login classco.aikar.commands.CommandManager<org.bukkit.command.CommandSender,BukkitCommandIssuer, org.bukkit.ChatColor, BukkitMessageFormatter, BukkitCommandExecutionContext, BukkitConditionContext>
-
usePerIssuerLocale
-
getCommandPrefix
- Overrides:
getCommandPrefixin classco.aikar.commands.CommandManager<org.bukkit.command.CommandSender,BukkitCommandIssuer, org.bukkit.ChatColor, BukkitMessageFormatter, BukkitCommandExecutionContext, BukkitConditionContext>
-
handleUncaughtException
protected boolean handleUncaughtException(co.aikar.commands.BaseCommand scope, co.aikar.commands.RegisteredCommand registeredCommand, co.aikar.commands.CommandIssuer sender, List<String> args, Throwable t) - Overrides:
handleUncaughtExceptionin classco.aikar.commands.CommandManager<org.bukkit.command.CommandSender,BukkitCommandIssuer, org.bukkit.ChatColor, BukkitMessageFormatter, BukkitCommandExecutionContext, BukkitConditionContext>
-