def onLoad(): global pages pages = Pages() wolfpack.registerglobal(EVENT_HELP, "system.pages") wolfpack.registercommand("page", page) if not wolfpack.isstarting(): pages.load()
def onLoad(): # Not on ServerStart if not wolfpack.isstarting(): web.sessions.clear_sessions() # Start the Thread global thread thread = WebserverThread( REMOTEADMIN_PORT ) thread.start()
def onLoad(): global pages global page pages = Pages() wolfpack.registerglobal(EVENT_HELP, "system.pages") wolfpack.registercommand("page", page) if not wolfpack.isstarting(): pages.load()
def onLoad(): # Not on ServerStart if not wolfpack.isstarting(): web.sessions.clear_sessions() # Get the remote admin port port = settings.getnumber('Network', 'Remoteadmin Port', 2594, True) # Start the Thread global thread thread = WebserverThread( port ) thread.start()
def onAttach(object): if wolfpack.isstarting(): object.deltag('nextspawn') spawns.register(object)