Record Class CommandInfo

java.lang.Object
java.lang.Record
eu.cloudnetservice.driver.command.CommandInfo
Record Components:
name - the root name of the command.
aliases - all aliases of the root command.
permission - the permission that is needed to execute the command.
description - the description of the command which is used for the help command.
docsUrl - the url to the documentation of the command.
usage - the correct syntax usages for each sub command.
All Implemented Interfaces:
Named

public record CommandInfo(@NonNull String name, @NonNull Set<String> aliases, @NonNull String permission, @NonNull String description, @Nullable String docsUrl, @NonNull List<String> usage) extends Record implements Named
Represents a command information object which holds all information for a single command that is registered on a node.

The command info has one main identification point. It's identified by the name of the command. The command represented by the command info is always the root of the command. Subcommands don't have an own command info, every needed information is stored in the root command info. The usage contains the syntax for every possible command, here are subcommands included too.

Since:
4.0