execute

open override fun execute(vararg args: String, context: Game?): CommandResult<Game>

Executes the exit command, saving the game if necessary and closing the application.

Return

This method never returns; it calls exitProcess(0) to terminate the application.

Parameters

args

Command arguments (unused for this command).

context

The current game context.