Package com.velocitypowered.api.command
Interface CommandMeta
public interface CommandMeta
Contains metadata for a
Command
.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Provides a fluent interface to createCommandMeta
s. -
Method Summary
Modifier and TypeMethodDescriptionReturns a non-empty collection containing the case-insensitive aliases used to execute the command.Collection<com.mojang.brigadier.tree.CommandNode<CommandSource>>
getHints()
Returns an immutable collection containing command nodes that provide additional argument metadata and tab-complete suggestions.@Nullable Object
Returns the plugin who registered the command.
-
Method Details
-
getAliases
Collection<String> getAliases()Returns a non-empty collection containing the case-insensitive aliases used to execute the command.- Returns:
- the command aliases
-
getHints
Collection<com.mojang.brigadier.tree.CommandNode<CommandSource>> getHints()Returns an immutable collection containing command nodes that provide additional argument metadata and tab-complete suggestions. Note someCommand
implementations may not support hinting.- Returns:
- the hinting command nodes
-
getPlugin
@Nullable Object getPlugin()Returns the plugin who registered the command. Note someCommand
registrations may not provide this information.- Returns:
- the registering plugin
-