public class VelocityCommandManager extends co.aikar.commands.CommandManager<com.velocitypowered.api.command.CommandSource,VelocityCommandIssuer,net.kyori.text.format.TextColor,VelocityMessageFormatter,VelocityCommandExecutionContext,VelocityConditionContext>
| Modifier and Type | Field and Description |
|---|---|
protected VelocityCommandCompletions |
completions |
protected VelocityCommandContexts |
contexts |
protected VelocityLocales |
locales |
protected com.velocitypowered.api.plugin.PluginContainer |
plugin |
protected com.velocitypowered.api.proxy.ProxyServer |
proxy |
protected Map<String,VelocityRootCommand> |
registeredCommands |
| Constructor and Description |
|---|
VelocityCommandManager(com.velocitypowered.api.proxy.ProxyServer proxy,
Object plugin) |
| Modifier and Type | Method and Description |
|---|---|
VelocityCommandExecutionContext |
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) |
VelocityConditionContext |
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<VelocityCommandCompletionContext> |
getCommandCompletions() |
co.aikar.commands.CommandContexts<VelocityCommandExecutionContext> |
getCommandContexts() |
VelocityCommandIssuer |
getCommandIssuer(Object issuer) |
String |
getCommandPrefix(co.aikar.commands.CommandIssuer issuer) |
VelocityLocales |
getLocales() |
com.velocitypowered.api.plugin.PluginContainer |
getPlugin() |
com.velocitypowered.api.proxy.ProxyServer |
getProxy() |
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(com.velocitypowered.api.proxy.Player player) |
void |
registerCommand(co.aikar.commands.BaseCommand command) |
void |
unregisterCommand(co.aikar.commands.BaseCommand command) |
void |
unregisterCommand(VelocityRootCommand 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 com.velocitypowered.api.proxy.ProxyServer proxy
protected final com.velocitypowered.api.plugin.PluginContainer plugin
protected Map<String,VelocityRootCommand> registeredCommands
protected VelocityCommandContexts contexts
protected VelocityCommandCompletions completions
protected VelocityLocales locales
public VelocityCommandManager(com.velocitypowered.api.proxy.ProxyServer proxy, Object plugin)
public com.velocitypowered.api.proxy.ProxyServer getProxy()
public com.velocitypowered.api.plugin.PluginContainer getPlugin()
public co.aikar.commands.CommandContexts<VelocityCommandExecutionContext> getCommandContexts()
getCommandContexts in class co.aikar.commands.CommandManager<com.velocitypowered.api.command.CommandSource,VelocityCommandIssuer,net.kyori.text.format.TextColor,VelocityMessageFormatter,VelocityCommandExecutionContext,VelocityConditionContext>public co.aikar.commands.CommandCompletions<VelocityCommandCompletionContext> getCommandCompletions()
getCommandCompletions in class co.aikar.commands.CommandManager<com.velocitypowered.api.command.CommandSource,VelocityCommandIssuer,net.kyori.text.format.TextColor,VelocityMessageFormatter,VelocityCommandExecutionContext,VelocityConditionContext>public VelocityLocales getLocales()
getLocales in class co.aikar.commands.CommandManager<com.velocitypowered.api.command.CommandSource,VelocityCommandIssuer,net.kyori.text.format.TextColor,VelocityMessageFormatter,VelocityCommandExecutionContext,VelocityConditionContext>public void readLocale(com.velocitypowered.api.proxy.Player player)
public void registerCommand(co.aikar.commands.BaseCommand command)
registerCommand in class co.aikar.commands.CommandManager<com.velocitypowered.api.command.CommandSource,VelocityCommandIssuer,net.kyori.text.format.TextColor,VelocityMessageFormatter,VelocityCommandExecutionContext,VelocityConditionContext>public void unregisterCommand(co.aikar.commands.BaseCommand command)
public void unregisterCommand(VelocityRootCommand command)
public void unregisterCommands()
public boolean hasRegisteredCommands()
hasRegisteredCommands in class co.aikar.commands.CommandManager<com.velocitypowered.api.command.CommandSource,VelocityCommandIssuer,net.kyori.text.format.TextColor,VelocityMessageFormatter,VelocityCommandExecutionContext,VelocityConditionContext>public boolean isCommandIssuer(Class<?> aClass)
isCommandIssuer in class co.aikar.commands.CommandManager<com.velocitypowered.api.command.CommandSource,VelocityCommandIssuer,net.kyori.text.format.TextColor,VelocityMessageFormatter,VelocityCommandExecutionContext,VelocityConditionContext>public VelocityCommandIssuer getCommandIssuer(Object issuer)
getCommandIssuer in class co.aikar.commands.CommandManager<com.velocitypowered.api.command.CommandSource,VelocityCommandIssuer,net.kyori.text.format.TextColor,VelocityMessageFormatter,VelocityCommandExecutionContext,VelocityConditionContext>public co.aikar.commands.RootCommand createRootCommand(String cmd)
createRootCommand in class co.aikar.commands.CommandManager<com.velocitypowered.api.command.CommandSource,VelocityCommandIssuer,net.kyori.text.format.TextColor,VelocityMessageFormatter,VelocityCommandExecutionContext,VelocityConditionContext>public Collection<co.aikar.commands.RootCommand> getRegisteredRootCommands()
getRegisteredRootCommands in class co.aikar.commands.CommandManager<com.velocitypowered.api.command.CommandSource,VelocityCommandIssuer,net.kyori.text.format.TextColor,VelocityMessageFormatter,VelocityCommandExecutionContext,VelocityConditionContext>public VelocityCommandExecutionContext 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<com.velocitypowered.api.command.CommandSource,VelocityCommandIssuer,net.kyori.text.format.TextColor,VelocityMessageFormatter,VelocityCommandExecutionContext,VelocityConditionContext>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<com.velocitypowered.api.command.CommandSource,VelocityCommandIssuer,net.kyori.text.format.TextColor,VelocityMessageFormatter,VelocityCommandExecutionContext,VelocityConditionContext>public co.aikar.commands.RegisteredCommand createRegisteredCommand(co.aikar.commands.BaseCommand command, String cmdName, Method method, String prefSubCommand)
createRegisteredCommand in class co.aikar.commands.CommandManager<com.velocitypowered.api.command.CommandSource,VelocityCommandIssuer,net.kyori.text.format.TextColor,VelocityMessageFormatter,VelocityCommandExecutionContext,VelocityConditionContext>public VelocityConditionContext createConditionContext(co.aikar.commands.CommandIssuer issuer, String config)
createConditionContext in class co.aikar.commands.CommandManager<com.velocitypowered.api.command.CommandSource,VelocityCommandIssuer,net.kyori.text.format.TextColor,VelocityMessageFormatter,VelocityCommandExecutionContext,VelocityConditionContext>public void log(co.aikar.commands.LogLevel level, String message, Throwable throwable)
log in class co.aikar.commands.CommandManager<com.velocitypowered.api.command.CommandSource,VelocityCommandIssuer,net.kyori.text.format.TextColor,VelocityMessageFormatter,VelocityCommandExecutionContext,VelocityConditionContext>public String getCommandPrefix(co.aikar.commands.CommandIssuer issuer)
getCommandPrefix in class co.aikar.commands.CommandManager<com.velocitypowered.api.command.CommandSource,VelocityCommandIssuer,net.kyori.text.format.TextColor,VelocityMessageFormatter,VelocityCommandExecutionContext,VelocityConditionContext>Copyright © 2019. All rights reserved.