Package cloud.commandframework.velocity
Class VelocityCommandManager<C>
- java.lang.Object
-
- cloud.commandframework.CommandManager<C>
-
- cloud.commandframework.velocity.VelocityCommandManager<C>
-
- Type Parameters:
C- Command sender type
public class VelocityCommandManager<C> extends cloud.commandframework.CommandManager<C>CommandManagerimplementation for Velocity
-
-
Constructor Summary
Constructors Constructor Description VelocityCommandManager(@NonNull com.velocitypowered.api.proxy.ProxyServer proxyServer, @NonNull java.util.function.Function<@NonNull cloud.commandframework.CommandTree<C>,@NonNull cloud.commandframework.execution.CommandExecutionCoordinator<C>> commandExecutionCoordinator, @NonNull java.util.function.Function<@NonNull com.velocitypowered.api.command.CommandSource,@NonNull C> commandSenderMapper, @NonNull java.util.function.Function<@NonNull C,@NonNull com.velocitypowered.api.command.CommandSource> backwardsCommandSenderMapper)Create a new command manager instance
-
Method Summary
Modifier and Type Method Description @NonNull cloud.commandframework.meta.CommandMetacreateDefaultCommandMeta()booleanhasPermission(@NonNull C sender, @NonNull java.lang.String permission)-
Methods inherited from class cloud.commandframework.CommandManager
argumentBuilder, command, command, commandBuilder, commandBuilder, commandBuilder, commandBuilder, commandBuilder, commandBuilder, executeCommand, flagBuilder, getCaptionRegistry, getCommandHelpHandler, getCommandRegistrationHandler, getCommands, getCommandSuggestionProcessor, getCommandSyntaxFormatter, getCommandTree, getExceptionHandler, getParserRegistry, getSetting, handleException, hasPermission, postprocessContext, preprocessContext, registerCommandPostProcessor, registerCommandPreProcessor, registerDefaultCaptions, registerExceptionHandler, setCaptionRegistry, setCommandRegistrationHandler, setCommandSuggestionProcessor, setCommandSyntaxFormatter, setSetting, suggest
-
-
-
-
Constructor Detail
-
VelocityCommandManager
public VelocityCommandManager(@NonNull com.velocitypowered.api.proxy.ProxyServer proxyServer, @NonNull java.util.function.Function<@NonNull cloud.commandframework.CommandTree<C>,@NonNull cloud.commandframework.execution.CommandExecutionCoordinator<C>> commandExecutionCoordinator, @NonNull java.util.function.Function<@NonNull com.velocitypowered.api.command.CommandSource,@NonNull C> commandSenderMapper, @NonNull java.util.function.Function<@NonNull C,@NonNull com.velocitypowered.api.command.CommandSource> backwardsCommandSenderMapper)Create a new command manager instance- Parameters:
proxyServer- ProxyServer instancecommandExecutionCoordinator- Coordinator providercommandSenderMapper- Function that mapsCommandSourceto the command sender typebackwardsCommandSenderMapper- Function that maps the command sender type toCommandSource
-
-
Method Detail
-
hasPermission
public final boolean hasPermission(@NonNull C sender, @NonNull java.lang.String permission)
- Specified by:
hasPermissionin classcloud.commandframework.CommandManager<C>
-
createDefaultCommandMeta
public final @NonNull cloud.commandframework.meta.CommandMeta createDefaultCommandMeta()
- Specified by:
createDefaultCommandMetain classcloud.commandframework.CommandManager<C>
-
-