public class BungeeCommandManager extends co.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter,BungeeCommandExecutionContext,BungeeConditionContext>
| Modifier and Type | Field and Description |
|---|---|
protected BungeeCommandCompletions |
completions |
protected BungeeCommandContexts |
contexts |
protected BungeeLocales |
locales |
protected net.md_5.bungee.api.plugin.Plugin |
plugin |
protected Map<String,BungeeRootCommand> |
registeredCommands |
| Constructor and Description |
|---|
BungeeCommandManager(net.md_5.bungee.api.plugin.Plugin plugin) |
| Modifier and Type | Method and Description |
|---|---|
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) |
co.aikar.commands.CommandCompletionContext |
createCompletionContext(co.aikar.commands.RegisteredCommand command,
co.aikar.commands.CommandIssuer sender,
String input,
String config,
String[] args) |
BungeeConditionContext |
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> |
getCommandCompletions() |
co.aikar.commands.CommandContexts<BungeeCommandExecutionContext> |
getCommandContexts() |
BungeeCommandIssuer |
getCommandIssuer(Object issuer) |
String |
getCommandPrefix(co.aikar.commands.CommandIssuer issuer) |
BungeeLocales |
getLocales() |
net.md_5.bungee.api.plugin.Plugin |
getPlugin() |
Collection<co.aikar.commands.RootCommand> |
getRegisteredRootCommands() |
boolean |
hasRegisteredCommands() |
boolean |
isCommandIssuer(Class<?> aClass) |
void |
log(co.aikar.commands.LogLevel level,
String message,
Throwable throwable) |
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 |
unregisterCommands() |
addSupportedLanguage, enableUnstableAPI, formatMessage, generateCommandHelp, generateCommandHelp, generateCommandHelp, generateCommandHelp, getCommandConditions, getCommandReplacements, getCurrentCommandIssuer, getCurrentCommandManager, getCurrentCommandOperationContext, getDefaultExceptionHandler, getDefaultFormatter, getDefaultHelpPerPage, getFormat, getHelpFormatter, getIssuerLocale, getRootCommand, getSupportedLanguages, handleUncaughtException, hasPermission, isLoggingUnhandledExceptions, log, notifyLocaleChange, obtainRootCommand, onLocaleChange, registerDependency, registerDependency, sendMessage, sendMessage, setDefaultExceptionHandler, setDefaultExceptionHandler, setDefaultFormatter, setDefaultHelpPerPage, setFormat, setFormat, setFormat, setHelpFormatter, setIssuerLocale, usePerIssuerLocale, usingPerIssuerLocaleprotected final net.md_5.bungee.api.plugin.Plugin plugin
protected Map<String,BungeeRootCommand> registeredCommands
protected BungeeCommandContexts contexts
protected BungeeCommandCompletions completions
protected BungeeLocales locales
public BungeeCommandManager(net.md_5.bungee.api.plugin.Plugin plugin)
public net.md_5.bungee.api.plugin.Plugin getPlugin()
public co.aikar.commands.CommandContexts<BungeeCommandExecutionContext> getCommandContexts()
getCommandContexts in class co.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter,BungeeCommandExecutionContext,BungeeConditionContext>public co.aikar.commands.CommandCompletions<BungeeCommandCompletionContext> getCommandCompletions()
getCommandCompletions in class co.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter,BungeeCommandExecutionContext,BungeeConditionContext>public BungeeLocales getLocales()
getLocales in class co.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter,BungeeCommandExecutionContext,BungeeConditionContext>public void readLocale(net.md_5.bungee.api.connection.ProxiedPlayer player)
public void registerCommand(co.aikar.commands.BaseCommand command)
registerCommand in class co.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter,BungeeCommandExecutionContext,BungeeConditionContext>public void unregisterCommand(co.aikar.commands.BaseCommand command)
public void unregisterCommand(BungeeRootCommand command)
public void unregisterCommands()
public boolean hasRegisteredCommands()
hasRegisteredCommands in class co.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter,BungeeCommandExecutionContext,BungeeConditionContext>public boolean isCommandIssuer(Class<?> aClass)
isCommandIssuer in class co.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter,BungeeCommandExecutionContext,BungeeConditionContext>public BungeeCommandIssuer getCommandIssuer(Object issuer)
getCommandIssuer in class co.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter,BungeeCommandExecutionContext,BungeeConditionContext>public co.aikar.commands.RootCommand createRootCommand(String cmd)
createRootCommand in class co.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter,BungeeCommandExecutionContext,BungeeConditionContext>public Collection<co.aikar.commands.RootCommand> getRegisteredRootCommands()
getRegisteredRootCommands in class co.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter,BungeeCommandExecutionContext,BungeeConditionContext>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)
createCommandContext in class co.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter,BungeeCommandExecutionContext,BungeeConditionContext>public co.aikar.commands.CommandCompletionContext createCompletionContext(co.aikar.commands.RegisteredCommand command, co.aikar.commands.CommandIssuer sender, String input, String config, String[] args)
createCompletionContext in class co.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter,BungeeCommandExecutionContext,BungeeConditionContext>public co.aikar.commands.RegisteredCommand createRegisteredCommand(co.aikar.commands.BaseCommand command, String cmdName, Method method, String prefSubCommand)
createRegisteredCommand in class co.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter,BungeeCommandExecutionContext,BungeeConditionContext>public BungeeConditionContext createConditionContext(co.aikar.commands.CommandIssuer issuer, String config)
createConditionContext in class co.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter,BungeeCommandExecutionContext,BungeeConditionContext>public void log(co.aikar.commands.LogLevel level, String message, Throwable throwable)
log in class co.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter,BungeeCommandExecutionContext,BungeeConditionContext>public String getCommandPrefix(co.aikar.commands.CommandIssuer issuer)
getCommandPrefix in class co.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,BungeeCommandIssuer,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter,BungeeCommandExecutionContext,BungeeConditionContext>Copyright © 2019. All rights reserved.