public class BungeeCommandManager extends co.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter>
| 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 |
|---|---|
<R extends co.aikar.commands.CommandExecutionContext> |
createCommandContext(co.aikar.commands.RegisteredCommand command,
Parameter 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) |
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() |
co.aikar.commands.CommandIssuer |
getCommandIssuer(Object issuer) |
BungeeLocales |
getLocales() |
net.md_5.bungee.api.plugin.Plugin |
getPlugin() |
boolean |
hasRegisteredCommands() |
boolean |
isCommandIssuer(Class<?> aClass) |
void |
log(co.aikar.commands.LogLevel level,
String message,
Throwable throwable) |
void |
registerCommand(co.aikar.commands.BaseCommand command) |
void |
unregisterCommand(co.aikar.commands.BaseCommand command) |
void |
unregisterCommand(BungeeRootCommand command) |
void |
unregisterCommands() |
addSupportedLanguage, createCommandOperationContext, enableUnstableAPI, formatMessage, generateCommandHelp, generateCommandHelp, generateCommandHelp, generateCommandHelp, getCommandReplacements, getCurrentCommandIssuer, getCurrentCommandManager, getCurrentCommandOperationContext, getDefaultExceptionHandler, getDefaultFormatter, getFormat, getIssuerLocale, getSupportedLanguages, handleUncaughtException, hasPermission, log, obtainRootCommand, sendMessage, sendMessage, setDefaultExceptionHandler, setDefaultFormatter, setFormat, setFormat, setFormatprotected 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,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter>public co.aikar.commands.CommandCompletions<BungeeCommandCompletionContext> getCommandCompletions()
getCommandCompletions in class co.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter>public BungeeLocales getLocales()
getLocales in class co.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter>public void registerCommand(co.aikar.commands.BaseCommand command)
registerCommand in class co.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter>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,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter>public boolean isCommandIssuer(Class<?> aClass)
isCommandIssuer in class co.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter>public co.aikar.commands.CommandIssuer getCommandIssuer(Object issuer)
getCommandIssuer in class co.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter>public co.aikar.commands.RootCommand createRootCommand(String cmd)
createRootCommand in class co.aikar.commands.CommandManager<net.md_5.bungee.api.CommandSender,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter>public <R extends co.aikar.commands.CommandExecutionContext> R createCommandContext(co.aikar.commands.RegisteredCommand command, Parameter 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,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter>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,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter>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,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter>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,net.md_5.bungee.api.ChatColor,BungeeMessageFormatter>Copyright © 2017. All rights reserved.