Class PluginCommand

java.lang.Object
de.craftsblock.craftsnet.command.commands.PluginCommand
All Implemented Interfaces:
CommandExecutor

public class PluginCommand extends Object implements 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 Details

    • PluginCommand

      public PluginCommand(CraftsNet craftsNet)
      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 the AddonManager from CraftsNet and logs information about installed addons to the provided logger.
      Specified by:
      onCommand in interface CommandExecutor
      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.