Class Command
java.lang.Object
me.lorenzo0111.pluginslib.command.ICommand<JavaPlugin>
me.lorenzo0111.pluginslib.command.Command
- All Implemented Interfaces:
CommandExecutor
public abstract class Command
extends me.lorenzo0111.pluginslib.command.ICommand<JavaPlugin>
implements CommandExecutor
Command
-
Field Summary
Fields inherited from class me.lorenzo0111.pluginslib.command.ICommand
subcommands -
Constructor Summary
ConstructorsConstructorDescriptionCommand(JavaPlugin plugin, String command, @Nullable me.lorenzo0111.pluginslib.command.Customization customization) -
Method Summary
Methods inherited from class me.lorenzo0111.pluginslib.command.ICommand
addSubcommand, findSubcommand, getCommand, getCustomization, getMessage, getPermission, getPlugin, getSubcommands
-
Constructor Details
-
Command
public Command(JavaPlugin plugin, String command, @Nullable @Nullable me.lorenzo0111.pluginslib.command.Customization customization) - Parameters:
plugin- Owner of the commandcommand- Name of the command ( /name )customization- Optional Command customization
-
-
Method Details
-
register
- Specified by:
registerin classme.lorenzo0111.pluginslib.command.ICommand<JavaPlugin>- Parameters:
command- Register the command in the plugin manager
-
onCommand
public boolean onCommand(@NotNull @NotNull CommandSender sender, @NotNull Command command, @NotNull @NotNull String label, @NotNull @NotNull String[] args) - Specified by:
onCommandin interfaceCommandExecutor
-