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
Fields Modifier and Type Field Description protected BungeeCommandCompletionscompletionsprotected BungeeCommandContextscontextsprotected BungeeLocaleslocalesprotected net.md_5.bungee.api.plugin.Pluginpluginprotected Map<String,BungeeRootCommand>registeredCommands
-
Constructor Summary
Constructors Constructor Description BungeeCommandManager(net.md_5.bungee.api.plugin.Plugin plugin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BungeeCommandExecutionContextcreateCommandContext(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)BungeeConditionContextcreateConditionContext(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>getCommandCompletions()co.aikar.commands.CommandContexts<BungeeCommandExecutionContext>getCommandContexts()BungeeCommandIssuergetCommandIssuer(Object issuer)StringgetCommandPrefix(co.aikar.commands.CommandIssuer issuer)BungeeLocalesgetLocales()net.md_5.bungee.api.plugin.PlugingetPlugin()Collection<co.aikar.commands.RootCommand>getRegisteredRootCommands()booleanhasRegisteredCommands()booleanisCommandIssuer(Class<?> aClass)voidlog(co.aikar.commands.LogLevel level, String message, Throwable throwable)voidreadLocale(net.md_5.bungee.api.connection.ProxiedPlayer player)voidregisterCommand(co.aikar.commands.BaseCommand command)voidunregisterCommand(co.aikar.commands.BaseCommand command)voidunregisterCommand(BungeeRootCommand command)voidunregisterCommands()-
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 Detail
-
plugin
protected final net.md_5.bungee.api.plugin.Plugin plugin
-
registeredCommands
protected Map<String,BungeeRootCommand> registeredCommands
-
contexts
protected BungeeCommandContexts contexts
-
completions
protected BungeeCommandCompletions completions
-
locales
protected BungeeLocales locales
-
-
Constructor Detail
-
BungeeCommandManager
public BungeeCommandManager(net.md_5.bungee.api.plugin.Plugin plugin)
-
-
Method Detail
-
getPlugin
public net.md_5.bungee.api.plugin.Plugin getPlugin()
-
getCommandContexts
public co.aikar.commands.CommandContexts<BungeeCommandExecutionContext> 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
public co.aikar.commands.CommandCompletions<BungeeCommandCompletionContext> 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
public BungeeLocales 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
public void readLocale(net.md_5.bungee.api.connection.ProxiedPlayer player)
-
registerCommand
public void registerCommand(co.aikar.commands.BaseCommand command)
- Specified by:
registerCommandin classco.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter,BungeeCommandExecutionContext,BungeeConditionContext>
-
unregisterCommand
public void unregisterCommand(co.aikar.commands.BaseCommand command)
-
unregisterCommand
public void unregisterCommand(BungeeRootCommand command)
-
unregisterCommands
public void unregisterCommands()
-
hasRegisteredCommands
public boolean 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
public boolean isCommandIssuer(Class<?> aClass)
- Specified by:
isCommandIssuerin classco.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter,BungeeCommandExecutionContext,BungeeConditionContext>
-
getCommandIssuer
public BungeeCommandIssuer getCommandIssuer(Object issuer)
- Specified by:
getCommandIssuerin classco.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter,BungeeCommandExecutionContext,BungeeConditionContext>
-
createRootCommand
public co.aikar.commands.RootCommand createRootCommand(String cmd)
- Specified by:
createRootCommandin classco.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter,BungeeCommandExecutionContext,BungeeConditionContext>
-
getRegisteredRootCommands
public Collection<co.aikar.commands.RootCommand> 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
public void log(co.aikar.commands.LogLevel level, String message, Throwable throwable)
- Specified by:
login classco.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter,BungeeCommandExecutionContext,BungeeConditionContext>
-
getCommandPrefix
public String getCommandPrefix(co.aikar.commands.CommandIssuer issuer)
- Overrides:
getCommandPrefixin classco.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter,BungeeCommandExecutionContext,BungeeConditionContext>
-
-