Package co.aikar.commands
Class BungeeCommandManager
java.lang.Object
co.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter,BungeeCommandExecutionContext,BungeeConditionContext>
co.aikar.commands.BungeeCommandManager
public class BungeeCommandManager
extends co.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter,BungeeCommandExecutionContext,BungeeConditionContext>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BungeeCommandCompletionsprotected BungeeCommandContextsprotected BungeeLocalesprotected final net.md_5.bungee.api.plugin.Pluginprotected Map<String,BungeeRootCommand> 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) co.aikar.commands.CommandCompletionContextcreateCompletionContext(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<BungeeCommandCompletionContext>co.aikar.commands.CommandContexts<BungeeCommandExecutionContext>getCommandIssuer(Object issuer) getCommandPrefix(co.aikar.commands.CommandIssuer issuer) net.md_5.bungee.api.plugin.PluginCollection<co.aikar.commands.RootCommand>booleanbooleanisCommandIssuer(Class<?> aClass) voidvoidreadLocale(net.md_5.bungee.api.connection.ProxiedPlayer player) voidregisterCommand(co.aikar.commands.BaseCommand command) voidunregisterCommand(co.aikar.commands.BaseCommand command) voidunregisterCommand(BungeeRootCommand command) voidMethods 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, handleUncaughtException, 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
-
registeredCommands
-
contexts
-
completions
-
locales
-
-
Constructor Details
-
BungeeCommandManager
-
-
Method Details
-
getPlugin
-
getCommandContexts
- Specified by:
getCommandContextsin classco.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer, net.md_5.bungee.api.ChatColor, BungeeMessageFormatter, BungeeCommandExecutionContext, BungeeConditionContext>
-
getCommandCompletions
- Specified by:
getCommandCompletionsin classco.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer, net.md_5.bungee.api.ChatColor, BungeeMessageFormatter, BungeeCommandExecutionContext, BungeeConditionContext>
-
getLocales
- Specified by:
getLocalesin classco.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer, net.md_5.bungee.api.ChatColor, BungeeMessageFormatter, BungeeCommandExecutionContext, BungeeConditionContext>
-
readLocale
-
registerCommand
- Specified by:
registerCommandin classco.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer, net.md_5.bungee.api.ChatColor, BungeeMessageFormatter, BungeeCommandExecutionContext, BungeeConditionContext>
-
unregisterCommand
-
unregisterCommand
-
unregisterCommands
-
hasRegisteredCommands
- Specified by:
hasRegisteredCommandsin classco.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer, net.md_5.bungee.api.ChatColor, BungeeMessageFormatter, BungeeCommandExecutionContext, BungeeConditionContext>
-
isCommandIssuer
- Specified by:
isCommandIssuerin classco.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer, net.md_5.bungee.api.ChatColor, BungeeMessageFormatter, BungeeCommandExecutionContext, BungeeConditionContext>
-
getCommandIssuer
- Specified by:
getCommandIssuerin classco.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer, net.md_5.bungee.api.ChatColor, BungeeMessageFormatter, BungeeCommandExecutionContext, BungeeConditionContext>
-
createRootCommand
- Specified by:
createRootCommandin classco.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer, net.md_5.bungee.api.ChatColor, BungeeMessageFormatter, BungeeCommandExecutionContext, BungeeConditionContext>
-
getRegisteredRootCommands
- Specified by:
getRegisteredRootCommandsin classco.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer, net.md_5.bungee.api.ChatColor, BungeeMessageFormatter, BungeeCommandExecutionContext, BungeeConditionContext>
-
createCommandContext
public BungeeCommandExecutionContext 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<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer, net.md_5.bungee.api.ChatColor, BungeeMessageFormatter, BungeeCommandExecutionContext, BungeeConditionContext>
-
createCompletionContext
public co.aikar.commands.CommandCompletionContext createCompletionContext(co.aikar.commands.RegisteredCommand command, co.aikar.commands.CommandIssuer sender, String input, String config, String[] args) - Specified by:
createCompletionContextin classco.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer, net.md_5.bungee.api.ChatColor, BungeeMessageFormatter, BungeeCommandExecutionContext, BungeeConditionContext>
-
createRegisteredCommand
public co.aikar.commands.RegisteredCommand createRegisteredCommand(co.aikar.commands.BaseCommand command, String cmdName, Method method, String prefSubCommand) - Overrides:
createRegisteredCommandin classco.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer, net.md_5.bungee.api.ChatColor, BungeeMessageFormatter, BungeeCommandExecutionContext, BungeeConditionContext>
-
createConditionContext
public BungeeConditionContext createConditionContext(co.aikar.commands.CommandIssuer issuer, String config) - Overrides:
createConditionContextin classco.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer, net.md_5.bungee.api.ChatColor, BungeeMessageFormatter, BungeeCommandExecutionContext, BungeeConditionContext>
-
log
- Specified by:
login classco.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer, net.md_5.bungee.api.ChatColor, BungeeMessageFormatter, BungeeCommandExecutionContext, BungeeConditionContext>
-
getCommandPrefix
- Overrides:
getCommandPrefixin classco.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer, net.md_5.bungee.api.ChatColor, BungeeMessageFormatter, BungeeCommandExecutionContext, BungeeConditionContext>
-