Class ReloadCommand

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

public class ReloadCommand extends Object implements CommandExecutor
Command executor for the reload command. This class implements the CommandExecutor interface and provides functionality to handle the "reload" command.
Since:
3.0.5-SNAPSHOT
  • Constructor Details

    • ReloadCommand

      public ReloadCommand(CraftsNet craftsNet)
      Constructs a new instance of the reload command.
      Parameters:
      craftsNet - The CraftsNet instance for which the reload command was registered
  • Method Details

    • onCommand

      public void onCommand(@NotNull @NotNull Command command, @NotNull @NotNull String alias, @NotNull @NotNull String[] args, @NotNull @NotNull Logger logger)
      Executes the reload command.
      Specified by:
      onCommand in interface CommandExecutor
      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.