Class PluginCommand
java.lang.Object
de.craftsblock.craftsnet.command.commands.PluginCommand
- All Implemented Interfaces:
CommandExecutor
Command executor for the plugin command.
This class implements the
CommandExecutor interface and provides functionality to handle the "plugin" command.- Since:
- 3.0.2-SNAPSHOT
-
Constructor Summary
ConstructorsConstructorDescriptionPluginCommand(CraftsNet craftsNet) Constructs a new instance of the plugin command -
Method Summary
-
Constructor Details
-
PluginCommand
Constructs a new instance of the plugin command- Parameters:
craftsNet- The CraftsNet instance which instantiates this plugin command.
-
-
Method Details
-
onCommand
public void onCommand(@NotNull @NotNull Command command, @NotNull @NotNull String alias, @NotNull @NotNull String[] args, @NotNull @NotNull Logger logger) Executes the plugin command. This method retrieves theAddonManagerfrom CraftsNet and logs information about installed addons to the provided logger.- Specified by:
onCommandin interfaceCommandExecutor- Parameters:
command- The command that was executed.alias- The alias name of the command used to access it.args- The arguments passed with the command (not used in this implementation).logger- The logger used to log messages.
-