Interface CommandExecutor

All Known Implementing Classes:
PluginCommand, ReloadCommand, ShutdownCommand, VersionCommand

public interface CommandExecutor
The CommandExecutor interface represents an object capable of executing commands. Classes that implement this interface can define custom logic for handling commands.
Since:
2.2.0-SNAPSHOT
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onCommand(@NotNull Command command, String alias, @NotNull String[] args, @NotNull Logger logger)
    Executes a command with the provided arguments and logger.
  • Method Details

    • onCommand

      void onCommand(@NotNull @NotNull Command command, String alias, @NotNull @NotNull String[] args, @NotNull @NotNull Logger logger)
      Executes a command with the provided arguments and logger.
      Parameters:
      command - The command to be executed.
      alias - The alias name of the command used to access it.
      args - The arguments passed with the command.
      logger - The logger for outputting messages or logging.