Package co.aikar.commands
Class VelocityCommandManager
java.lang.Object
co.aikar.commands.CommandManager<com.velocitypowered.api.command.CommandSource,VelocityCommandIssuer,net.kyori.adventure.text.format.NamedTextColor,VelocityMessageFormatter,VelocityCommandExecutionContext,VelocityConditionContext>
co.aikar.commands.VelocityCommandManager
public class VelocityCommandManager
extends co.aikar.commands.CommandManager<com.velocitypowered.api.command.CommandSource,VelocityCommandIssuer,net.kyori.adventure.text.format.NamedTextColor,VelocityMessageFormatter,VelocityCommandExecutionContext,VelocityConditionContext>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected VelocityCommandCompletionsprotected VelocityCommandContextsprotected VelocityLocalesprotected final com.velocitypowered.api.plugin.PluginContainerprotected final com.velocitypowered.api.proxy.ProxyServerprotected Map<String,VelocityRootCommand> Fields inherited from class co.aikar.commands.CommandManager
conditions, defaultExceptionHandler, defaultFormatter, defaultHelpPerPage, dependencies, formatters, helpFormatter, issuersLocale, localeChangedCallbacks, replacements, rootCommands, supportedLanguages, usePerIssuerLocale -
Constructor Summary
ConstructorsConstructorDescriptionVelocityCommandManager(com.velocitypowered.api.proxy.ProxyServer proxy, Object plugin) -
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.CommandCompletionContextcreateCompletionContext(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.RegisteredCommandcreateRegisteredCommand(co.aikar.commands.BaseCommand command, String cmdName, Method method, String prefSubCommand) co.aikar.commands.RootCommandcreateRootCommand(String cmd) co.aikar.commands.CommandCompletions<VelocityCommandCompletionContext>co.aikar.commands.CommandContexts<VelocityCommandExecutionContext>getCommandIssuer(Object issuer) getCommandPrefix(co.aikar.commands.CommandIssuer issuer) com.velocitypowered.api.plugin.PluginContainercom.velocitypowered.api.proxy.ProxyServergetProxy()Collection<co.aikar.commands.RootCommand>booleanbooleanisCommandIssuer(Class<?> aClass) voidvoidreadLocale(com.velocitypowered.api.proxy.Player player) voidregisterCommand(co.aikar.commands.BaseCommand command) voidregisterCommand(co.aikar.commands.BaseCommand command, boolean force) voidunregisterCommand(co.aikar.commands.BaseCommand command) voidunregisterCommand(VelocityRootCommand command) voidMethods 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
-
proxy
-
plugin
-
registeredCommands
-
contexts
-
completions
-
locales
-
-
Constructor Details
-
VelocityCommandManager
-
-
Method Details
-
getProxy
-
getPlugin
-
getCommandContexts
- Specified by:
getCommandContextsin classco.aikar.commands.CommandManager<com.velocitypowered.api.command.CommandSource,VelocityCommandIssuer, net.kyori.adventure.text.format.NamedTextColor, VelocityMessageFormatter, VelocityCommandExecutionContext, VelocityConditionContext>
-
getCommandCompletions
public co.aikar.commands.CommandCompletions<VelocityCommandCompletionContext> getCommandCompletions()- Specified by:
getCommandCompletionsin classco.aikar.commands.CommandManager<com.velocitypowered.api.command.CommandSource,VelocityCommandIssuer, net.kyori.adventure.text.format.NamedTextColor, VelocityMessageFormatter, VelocityCommandExecutionContext, VelocityConditionContext>
-
getLocales
- Specified by:
getLocalesin classco.aikar.commands.CommandManager<com.velocitypowered.api.command.CommandSource,VelocityCommandIssuer, net.kyori.adventure.text.format.NamedTextColor, VelocityMessageFormatter, VelocityCommandExecutionContext, VelocityConditionContext>
-
readLocale
-
registerCommand
- Specified by:
registerCommandin classco.aikar.commands.CommandManager<com.velocitypowered.api.command.CommandSource,VelocityCommandIssuer, net.kyori.adventure.text.format.NamedTextColor, VelocityMessageFormatter, VelocityCommandExecutionContext, VelocityConditionContext>
-
registerCommand
-
unregisterCommand
-
unregisterCommand
-
unregisterCommands
-
hasRegisteredCommands
- Specified by:
hasRegisteredCommandsin classco.aikar.commands.CommandManager<com.velocitypowered.api.command.CommandSource,VelocityCommandIssuer, net.kyori.adventure.text.format.NamedTextColor, VelocityMessageFormatter, VelocityCommandExecutionContext, VelocityConditionContext>
-
isCommandIssuer
- Specified by:
isCommandIssuerin classco.aikar.commands.CommandManager<com.velocitypowered.api.command.CommandSource,VelocityCommandIssuer, net.kyori.adventure.text.format.NamedTextColor, VelocityMessageFormatter, VelocityCommandExecutionContext, VelocityConditionContext>
-
getCommandIssuer
- Specified by:
getCommandIssuerin classco.aikar.commands.CommandManager<com.velocitypowered.api.command.CommandSource,VelocityCommandIssuer, net.kyori.adventure.text.format.NamedTextColor, VelocityMessageFormatter, VelocityCommandExecutionContext, VelocityConditionContext>
-
createRootCommand
- Specified by:
createRootCommandin classco.aikar.commands.CommandManager<com.velocitypowered.api.command.CommandSource,VelocityCommandIssuer, net.kyori.adventure.text.format.NamedTextColor, VelocityMessageFormatter, VelocityCommandExecutionContext, VelocityConditionContext>
-
getRegisteredRootCommands
- Specified by:
getRegisteredRootCommandsin classco.aikar.commands.CommandManager<com.velocitypowered.api.command.CommandSource,VelocityCommandIssuer, net.kyori.adventure.text.format.NamedTextColor, VelocityMessageFormatter, VelocityCommandExecutionContext, VelocityConditionContext>
-
createCommandContext
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) - Specified by:
createCommandContextin classco.aikar.commands.CommandManager<com.velocitypowered.api.command.CommandSource,VelocityCommandIssuer, net.kyori.adventure.text.format.NamedTextColor, VelocityMessageFormatter, VelocityCommandExecutionContext, VelocityConditionContext>
-
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<com.velocitypowered.api.command.CommandSource,VelocityCommandIssuer, net.kyori.adventure.text.format.NamedTextColor, VelocityMessageFormatter, VelocityCommandExecutionContext, VelocityConditionContext>
-
createRegisteredCommand
public co.aikar.commands.RegisteredCommand createRegisteredCommand(co.aikar.commands.BaseCommand command, String cmdName, Method method, String prefSubCommand) - Overrides:
createRegisteredCommandin classco.aikar.commands.CommandManager<com.velocitypowered.api.command.CommandSource,VelocityCommandIssuer, net.kyori.adventure.text.format.NamedTextColor, VelocityMessageFormatter, VelocityCommandExecutionContext, VelocityConditionContext>
-
createConditionContext
public VelocityConditionContext createConditionContext(co.aikar.commands.CommandIssuer issuer, String config) - Overrides:
createConditionContextin classco.aikar.commands.CommandManager<com.velocitypowered.api.command.CommandSource,VelocityCommandIssuer, net.kyori.adventure.text.format.NamedTextColor, VelocityMessageFormatter, VelocityCommandExecutionContext, VelocityConditionContext>
-
log
- Specified by:
login classco.aikar.commands.CommandManager<com.velocitypowered.api.command.CommandSource,VelocityCommandIssuer, net.kyori.adventure.text.format.NamedTextColor, VelocityMessageFormatter, VelocityCommandExecutionContext, VelocityConditionContext>
-
getCommandPrefix
- Overrides:
getCommandPrefixin classco.aikar.commands.CommandManager<com.velocitypowered.api.command.CommandSource,VelocityCommandIssuer, net.kyori.adventure.text.format.NamedTextColor, VelocityMessageFormatter, VelocityCommandExecutionContext, VelocityConditionContext>
-