Class SubCommand


  • @Internal
    public final class SubCommand
    extends Object
    Sub-command.
    • 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.
      • execute

        public void execute​(@NotNull
                            @NotNull Context context,
                            @NotNull
                            @NotNull Command parent)
        Execute the command.
        Parameters:
        context - Execution context.
        parent - Parent command.