T - - your main classpublic final class CommandRegistry<T extends org.bukkit.plugin.java.JavaPlugin> extends Object
| Constructor and Description |
|---|
CommandRegistry(@NotNull org.bukkit.plugin.java.JavaPlugin plugin) |
| Modifier and Type | Method and Description |
|---|---|
void |
register(AbstractCommand<T>... commands)
Method for registering several
AbstractCommand in one call |
void |
register(@NotNull AbstractCommand<T> cmd)
Method for registering runtime commands
|
void |
register(@NotNull ConfigCommand<T> command)
Method for registering plugin.yml-command
|
void |
registerCommands(ConfigCommand<T>... commands)
Method for registering several plugin.yml-commands
|
public void register(@NotNull
@NotNull AbstractCommand<T> cmd)
cmd - AbstractCommand to register@SafeVarargs public final void register(AbstractCommand<T>... commands)
AbstractCommand in one callcommands - list of commands to registerpublic final void register(@NotNull
@NotNull ConfigCommand<T> command)
command - ConfigCommand command to register.@SafeVarargs public final void registerCommands(ConfigCommand<T>... commands)
commands - - list of ConfigCommand to register;Copyright © 2023. All rights reserved.