public abstract class Command extends me.lorenzo0111.pluginslib.command.ICommand<JavaPlugin> implements CommandExecutor
| Constructor and Description |
|---|
Command(JavaPlugin plugin,
String command,
@Nullable me.lorenzo0111.pluginslib.command.Customization customization) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
onCommand(@NotNull CommandSender sender,
Command command,
@NotNull String label,
@NotNull String[] args) |
void |
register(String command) |
public Command(JavaPlugin plugin, String command, @Nullable @Nullable me.lorenzo0111.pluginslib.command.Customization customization)
plugin - Owner of the commandcommand - Name of the command ( /name )customization - Optional Command customizationpublic void register(String command)
register in class me.lorenzo0111.pluginslib.command.ICommand<JavaPlugin>command - Register the command in the plugin manager