Package com.velocitypowered.api.command
Interface CommandMeta
-
public interface CommandMetaContains metadata for aCommand.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceCommandMeta.BuilderProvides a fluent interface to createCommandMetas.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<String>getAliases()Returns 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 ObjectgetPlugin()Returns the plugin who registered the command.
-
-
-
Method Detail
-
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 someCommandimplementations may not support hinting.- Returns:
- the hinting command nodes
-
-