Added at_post_disconnect() hook to Player, to allow for clean deletion of players at disconnect (for example for Guest-account implementation)
This commit is contained in:
parent
88efc50054
commit
1874300ad1
2 changed files with 12 additions and 0 deletions
|
|
@ -123,6 +123,8 @@ class ServerSession(Session):
|
|||
if not self.sessionhandler.sessions_from_player(player):
|
||||
# no more sessions connected to this player
|
||||
player.is_connected = False
|
||||
# this may be used to e.g. delete player after disconnection etc
|
||||
_GA(player.typeclass, "at_post_disconnect")()
|
||||
|
||||
def get_player(self):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue