Package dev.hypera.chameleon.command
Class SubCommand
- java.lang.Object
-
- dev.hypera.chameleon.command.SubCommand
-
@Internal public final class SubCommand extends Object
Sub-command.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(@NotNull Context context, @NotNull Command parent)Execute the command.@NotNull Collection<String>getAliases()Get command aliases.@NotNull StringgetName()Get command name.@NotNull Collection<String>getNames()Get command names.
-
-
-
Method Detail
-
getNames
@NotNull public @NotNull Collection<String> getNames()
Get command names.- Returns:
- command names.
-
getName
@NotNull public @NotNull String getName()
Get command name.- Returns:
- command name.
-
getAliases
@NotNull public @NotNull Collection<String> getAliases()
Get command aliases.- Returns:
- command aliases.
-
-