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
Modifier and TypeFieldDescriptionprotected BungeeCommandCompletions
protected BungeeCommandContexts
protected BungeeLocales
protected final net.md_5.bungee.api.plugin.Plugin
protected 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
-
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.CommandCompletionContext
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.RegisteredCommand
createRegisteredCommand
(co.aikar.commands.BaseCommand command, String cmdName, Method method, String prefSubCommand) co.aikar.commands.RootCommand
createRootCommand
(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.Plugin
Collection<co.aikar.commands.RootCommand>
boolean
boolean
isCommandIssuer
(Class<?> aClass) void
void
readLocale
(net.md_5.bungee.api.connection.ProxiedPlayer player) void
registerCommand
(co.aikar.commands.BaseCommand command) void
unregisterCommand
(co.aikar.commands.BaseCommand command) void
unregisterCommand
(BungeeRootCommand command) void
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, 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:
getCommandContexts
in classco.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,
BungeeCommandIssuer, net.md_5.bungee.api.ChatColor, BungeeMessageFormatter, BungeeCommandExecutionContext, BungeeConditionContext>
-
getCommandCompletions
- Specified by:
getCommandCompletions
in classco.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,
BungeeCommandIssuer, net.md_5.bungee.api.ChatColor, BungeeMessageFormatter, BungeeCommandExecutionContext, BungeeConditionContext>
-
getLocales
- Specified by:
getLocales
in classco.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,
BungeeCommandIssuer, net.md_5.bungee.api.ChatColor, BungeeMessageFormatter, BungeeCommandExecutionContext, BungeeConditionContext>
-
readLocale
-
registerCommand
- Specified by:
registerCommand
in 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:
hasRegisteredCommands
in classco.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,
BungeeCommandIssuer, net.md_5.bungee.api.ChatColor, BungeeMessageFormatter, BungeeCommandExecutionContext, BungeeConditionContext>
-
isCommandIssuer
- Specified by:
isCommandIssuer
in classco.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,
BungeeCommandIssuer, net.md_5.bungee.api.ChatColor, BungeeMessageFormatter, BungeeCommandExecutionContext, BungeeConditionContext>
-
getCommandIssuer
- Specified by:
getCommandIssuer
in classco.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,
BungeeCommandIssuer, net.md_5.bungee.api.ChatColor, BungeeMessageFormatter, BungeeCommandExecutionContext, BungeeConditionContext>
-
createRootCommand
- Specified by:
createRootCommand
in classco.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,
BungeeCommandIssuer, net.md_5.bungee.api.ChatColor, BungeeMessageFormatter, BungeeCommandExecutionContext, BungeeConditionContext>
-
getRegisteredRootCommands
- Specified by:
getRegisteredRootCommands
in 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:
createCommandContext
in 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:
createCompletionContext
in 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:
createRegisteredCommand
in 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:
createConditionContext
in classco.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,
BungeeCommandIssuer, net.md_5.bungee.api.ChatColor, BungeeMessageFormatter, BungeeCommandExecutionContext, BungeeConditionContext>
-
log
- Specified by:
log
in classco.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,
BungeeCommandIssuer, net.md_5.bungee.api.ChatColor, BungeeMessageFormatter, BungeeCommandExecutionContext, BungeeConditionContext>
-
getCommandPrefix
- Overrides:
getCommandPrefix
in classco.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,
BungeeCommandIssuer, net.md_5.bungee.api.ChatColor, BungeeMessageFormatter, BungeeCommandExecutionContext, BungeeConditionContext>
-