Call at_server_shutdown, at reset/shutdown for scripts.

This commit is contained in:
Ahmed Charles 2015-10-27 01:34:58 +00:00 committed by Griatch
parent 726e505311
commit 9d3ce1e8f0

View file

@ -367,7 +367,7 @@ class Evennia(object):
yield [(p.unpuppet_all(), p.at_server_shutdown())
for p in PlayerDB.get_all_cached_instances()]
yield ObjectDB.objects.clear_all_sessids()
yield [(s.pause(), s.at_server_reload()) for s in ScriptDB.get_all_cached_instances()]
yield [(s.pause(), s.at_server_shutdown()) for s in ScriptDB.get_all_cached_instances()]
ServerConfig.objects.conf("server_restart_mode", "reset")
self.at_server_cold_stop()