Class CommandUtilKt
-
- All Implemented Interfaces:
public final class CommandUtilKt
-
-
Method Summary
Modifier and Type Method Description final static StellarCommand
command(String name, String description, List<String> permissions, List<String> aliases, Function1<StellarCommand, Unit> builder)
Creates a new command with the specified parameters and a builder function. final static StellarCommand
command(String name, String description, List<String> permissions, List<String> aliases, Function1<StellarCommand, Unit> builder)
final static StellarCommand
command(String name, String description, Function1<StellarCommand, Unit> builder)
Creates a new command with a name, description, and a builder function. final static StellarCommand
command(String name, String description, Function1<StellarCommand, Unit> builder)
final static StellarCommand
command(String name, String description, List<String> permissions, Function1<StellarCommand, Unit> builder)
Creates a new command with a name, description, permissions, and a builder function. final static StellarCommand
command(String name, String description, List<String> permissions, Function1<StellarCommand, Unit> builder)
final static StellarCommand
command(String name, List<String> permissions, Function1<StellarCommand, Unit> builder)
Creates a new command with a name, permissions, and a builder function. final static StellarCommand
command(String name, List<String> permissions, Function1<StellarCommand, Unit> builder)
final static StellarCommand
command(String name, List<String> permissions, List<String> aliases, Function1<StellarCommand, Unit> builder)
Creates a new command with a name, permissions, aliases, and a builder function. final static StellarCommand
command(String name, List<String> permissions, List<String> aliases, Function1<StellarCommand, Unit> builder)
final static StellarCommand
command(String name, Function1<StellarCommand, Unit> builder)
Creates a new command with a name and a builder function. final static StellarCommand
command(String name, Function1<StellarCommand, Unit> builder)
final static StellarCommand
command(String name, String description, List<String> permissions, List<String> aliases)
Creates a new command with the specified parameters. final static StellarCommand
command(String name, String description, List<String> permissions, List<String> aliases)
final static StellarCommand
command(String name, String description)
Creates a new command with a name and description. final static StellarCommand
command(String name, String description)
final static StellarCommand
command(String name, String description, List<String> permissions)
Creates a new command with a name, description, and permissions. final static StellarCommand
command(String name, String description, List<String> permissions)
final static StellarCommand
command(String name, List<String> permissions)
Creates a new command with a name and permissions. final static StellarCommand
command(String name, List<String> permissions)
final static StellarCommand
command(String name, List<String> permissions, List<String> aliases)
Creates a new command with a name, permissions, and aliases. final static StellarCommand
command(String name, List<String> permissions, List<String> aliases)
final static StellarCommand
command(String name)
Creates a new command with a name. final static StellarCommand
command(String name)
final static Unit
unregisterCommand(String name)
Unregisters a command with the given name. final static Unit
unregisterCommand(String names)
-
-
Method Detail
-
command
final static StellarCommand command(String name, String description, List<String> permissions, List<String> aliases, Function1<StellarCommand, Unit> builder)
Creates a new command with the specified parameters and a builder function.
- Parameters:
name
- The name of the command.description
- The description of the command.permissions
- A list of permissions required to execute the command.aliases
- A list of aliases for the command.builder
- A lambda function used to configure the command.- Returns:
The created StellarCommand instance.
-
command
final static StellarCommand command(String name, String description, List<String> permissions, List<String> aliases, Function1<StellarCommand, Unit> builder)
-
command
final static StellarCommand command(String name, String description, Function1<StellarCommand, Unit> builder)
Creates a new command with a name, description, and a builder function.
- Parameters:
name
- The name of the command.description
- The description of the command.builder
- A lambda function used to configure the command.- Returns:
The created StellarCommand instance.
-
command
final static StellarCommand command(String name, String description, Function1<StellarCommand, Unit> builder)
-
command
final static StellarCommand command(String name, String description, List<String> permissions, Function1<StellarCommand, Unit> builder)
Creates a new command with a name, description, permissions, and a builder function.
- Parameters:
name
- The name of the command.description
- The description of the command.permissions
- A list of permissions required to execute the command.builder
- A lambda function used to configure the command.- Returns:
The created StellarCommand instance.
-
command
final static StellarCommand command(String name, String description, List<String> permissions, Function1<StellarCommand, Unit> builder)
-
command
final static StellarCommand command(String name, List<String> permissions, Function1<StellarCommand, Unit> builder)
Creates a new command with a name, permissions, and a builder function.
- Parameters:
name
- The name of the command.permissions
- A list of permissions required to execute the command.builder
- A lambda function used to configure the command.- Returns:
The created StellarCommand instance.
-
command
final static StellarCommand command(String name, List<String> permissions, Function1<StellarCommand, Unit> builder)
-
command
final static StellarCommand command(String name, List<String> permissions, List<String> aliases, Function1<StellarCommand, Unit> builder)
Creates a new command with a name, permissions, aliases, and a builder function.
- Parameters:
name
- The name of the command.permissions
- A list of permissions required to execute the command.aliases
- A list of aliases for the command.builder
- A lambda function used to configure the command.- Returns:
The created StellarCommand instance.
-
command
final static StellarCommand command(String name, List<String> permissions, List<String> aliases, Function1<StellarCommand, Unit> builder)
-
command
final static StellarCommand command(String name, Function1<StellarCommand, Unit> builder)
Creates a new command with a name and a builder function.
- Parameters:
name
- The name of the command.builder
- A lambda function used to configure the command.- Returns:
The created StellarCommand instance.
-
command
final static StellarCommand command(String name, Function1<StellarCommand, Unit> builder)
-
command
final static StellarCommand command(String name, String description, List<String> permissions, List<String> aliases)
Creates a new command with the specified parameters.
- Parameters:
name
- The name of the command.description
- The description of the command.permissions
- A list of permissions required to execute the command.aliases
- A list of aliases for the command.- Returns:
The created StellarCommand instance.
-
command
final static StellarCommand command(String name, String description, List<String> permissions, List<String> aliases)
-
command
final static StellarCommand command(String name, String description)
Creates a new command with a name and description.
- Parameters:
name
- The name of the command.description
- The description of the command.- Returns:
The created StellarCommand instance.
-
command
final static StellarCommand command(String name, String description)
-
command
final static StellarCommand command(String name, String description, List<String> permissions)
Creates a new command with a name, description, and permissions.
- Parameters:
name
- The name of the command.description
- The description of the command.permissions
- A list of permissions required to execute the command.- Returns:
The created StellarCommand instance.
-
command
final static StellarCommand command(String name, String description, List<String> permissions)
-
command
final static StellarCommand command(String name, List<String> permissions)
Creates a new command with a name and permissions.
- Parameters:
name
- The name of the command.permissions
- A list of permissions required to execute the command.- Returns:
The created StellarCommand instance.
-
command
final static StellarCommand command(String name, List<String> permissions)
-
command
final static StellarCommand command(String name, List<String> permissions, List<String> aliases)
Creates a new command with a name, permissions, and aliases.
- Parameters:
name
- The name of the command.permissions
- A list of permissions required to execute the command.aliases
- A list of aliases for the command.- Returns:
The created StellarCommand instance.
-
command
final static StellarCommand command(String name, List<String> permissions, List<String> aliases)
-
command
final static StellarCommand command(String name)
Creates a new command with a name.
- Returns:
The created StellarCommand instance.
-
command
final static StellarCommand command(String name)
-
unregisterCommand
final static Unit unregisterCommand(String name)
Unregisters a command with the given name.
-
unregisterCommand
final static Unit unregisterCommand(String names)
-
-
-
-