Allows you to exit the server in orderly fashion, while triggering the OnServerExit event (important for most of my scripts). Also makes sure to save all the data in case OnServerExit is triggered by a lua crash.
Requires DataManager!
Simply use /shutdown (configurable) to exit the server.
You can find the configuration file in server/data/custom/__config_ShutdownServer.json.
commandNamename of the chat command.shutdownby default.announceMessagemessage displayed before the reboot.timeUnitdefines what1inannouncePeriods,shutdownDelayandscheduledShutdownTimemean. Equals to60(a minute) by default.announcePeriodsfor each value, server will be notified about the shutdown that many minutes prior to it.shutdownDelayhow many minutes after/shutdownwith no arguments will the server exit.requiredRankrank required to use/shutdown,2(Admin) by default.scheduledShutdownEnabledwhether server should power off (e.g. to be automatically restarted) after some amount of time. Off by default.scheduledShutdownTimedelay until automated shutdown. 6 hours by default.