Move gametime conversion factors to contrib and remove them from the settings file with the motivation that the gametime constats were always highly game specific and a remnant from another time. Reworked the gametime library and add server epoch building from vincent-lg's original PR. The gametime module now deals exclusively in seconds.
This commit is contained in:
parent
2a48a4d645
commit
008566f358
7 changed files with 96 additions and 229 deletions
|
|
@ -7,7 +7,7 @@ Everything starts at handle_setup()
|
|||
"""
|
||||
from __future__ import print_function
|
||||
|
||||
import django
|
||||
import time
|
||||
from django.conf import settings
|
||||
from django.utils.translation import ugettext as _
|
||||
from evennia.players.models import PlayerDB
|
||||
|
|
@ -160,6 +160,7 @@ def reset_server():
|
|||
also checks so the warm-reset mechanism works as it should.
|
||||
|
||||
"""
|
||||
ServerConfig.objects.conf("server_epoch", time.time())
|
||||
from evennia.server.sessionhandler import SESSIONS
|
||||
logger.log_info(" Initial setup complete. Restarting Server once.")
|
||||
SESSIONS.server.shutdown(mode='reset')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue