Esempio n. 1
0
def reset_server():
    """
    We end the initialization by resetting the server. This makes sure
    the first login is the same as all the following ones,
    particularly it cleans all caches for the special objects.  It
    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.portal_reset_server()
Esempio n. 2
0
def reset_server():
    """
    We end the initialization by resetting the server. This makes sure
    the first login is the same as all the following ones,
    particularly it cleans all caches for the special objects.  It
    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.portal_reset_server()
Esempio n. 3
0
 def func(self):
     """
     Reload the system.
     """
     SESSIONS.announce_all(" Server resetting/restarting ...")
     SESSIONS.portal_reset_server()