mirror of
https://github.com/evennia/evennia.git
synced 2026-04-04 06:57:16 +02:00
Fixed some issues with which hooks the reset command calls. Resolves #499.
This commit is contained in:
parent
bbba449aa4
commit
e76061ee4c
4 changed files with 12 additions and 5 deletions
|
|
@ -325,14 +325,15 @@ class Evennia(object):
|
|||
# same as shutdown
|
||||
yield [(o.typeclass, o.at_server_shutdown())
|
||||
for o in ObjectDB.get_all_cached_instances()]
|
||||
yield [(p.typeclass, p.at_server_shutdown())
|
||||
for p in PlayerDB.get_all_cached_instances()]
|
||||
else: # shutdown
|
||||
yield [_SA(p, "is_connected", False)
|
||||
for p in PlayerDB.get_all_cached_instances()]
|
||||
yield [(o.typeclass, o.at_server_shutdown())
|
||||
for o in ObjectDB.get_all_cached_instances()]
|
||||
|
||||
yield [(p.typeclass, p.unpuppet_all(), p.at_server_shutdown())
|
||||
for p in PlayerDB.get_all_cached_instances()]
|
||||
yield [(p.typeclass, p.unpuppet_all(), p.at_server_shutdown())
|
||||
for p in PlayerDB.get_all_cached_instances()]
|
||||
yield [(s.typeclass, s.at_server_shutdown())
|
||||
for s in ScriptDB.get_all_cached_instances()]
|
||||
yield ObjectDB.objects.clear_all_sessids()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue