mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-21 09:02:07 -07:00
better shutdown hook
This commit is contained in:
parent
b49287830e
commit
68593bd079
1 changed files with 2 additions and 1 deletions
|
|
@ -12,6 +12,7 @@ import core.plugin.Initializable
|
|||
import org.rs09.consts.Items
|
||||
import rs09.game.system.command.Command
|
||||
import rs09.game.world.repository.Repository
|
||||
import kotlin.system.exitProcess
|
||||
|
||||
@Initializable
|
||||
class SystemCommandSet : CommandSet(Command.Privilege.ADMIN) {
|
||||
|
|
@ -234,7 +235,7 @@ class SystemCommandSet : CommandSet(Command.Privilege.ADMIN) {
|
|||
}
|
||||
|
||||
define("shutdown",Command.Privilege.ADMIN) { player, _ ->
|
||||
SystemManager.flag(SystemState.TERMINATED)
|
||||
exitProcess(0)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue