Updated gametime module to work on-the-fly, based on patches and discussion with user Khandrish. Also made cleanups to @scripts command and some small bug fixes.

This commit is contained in:
Griatch 2014-01-04 17:14:51 +01:00
parent 48bfc7e54a
commit ea7e43c746
5 changed files with 87 additions and 141 deletions

View file

@ -336,6 +336,10 @@ class Evennia(object):
if SERVER_STARTSTOP_MODULE:
SERVER_STARTSTOP_MODULE.at_server_cold_stop()
# stopping time
from src.utils import gametime
gametime.save()
if SERVER_STARTSTOP_MODULE:
SERVER_STARTSTOP_MODULE.at_server_stop()
# if _reactor_stopping is true, reactor does not need to