Class ShutdownCommand
java.lang.Object
de.craftsblock.craftsnet.command.commands.ShutdownCommand
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionShutdownCommand(CraftsNet craftsNet) Constructs a new instance shutdown command. -
Method Summary
-
Constructor Details
-
ShutdownCommand
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:
onCommandin interfaceCommandExecutor- Parameters:
command- TheCommandobject 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.
-