Class ShutdownCommand

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

public class ShutdownCommand extends Object implements CommandExecutor
The ShutdownCommand class implements the CommandExecutor interface and defines the behavior of the "shutdown" command. This command is used to gracefully shut down the CraftsNet program.
Since:
2.2.0-SNAPSHOT
  • Constructor Details

    • ShutdownCommand

      public ShutdownCommand(CraftsNet craftsNet)
      Constructs a new instance shutdown command.
      Parameters:
      craftsNet - The CraftsNet instance which instantiates this shutdown 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 "shutdown" command, initiating the shutdown process for CraftsNet.
      Specified by:
      onCommand in interface CommandExecutor
      Parameters:
      command - The Command object representing the "shutdown" command.
      alias - The alias name of the command used to access it.
      args - The arguments passed with the command (not used in this command).
      logger - The logger for outputting messages or logging.