Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def player_disconnect(ev):
- userid = int(ev['userid'])
- if userid in tmp:
- tmp[userid].player.lastconnect = time.time()
- tmp[userid].player.name = database.removeWarnings(ev['es_username'])
- tmp[userid].save()
- tmp1[userid].save()
- for x in tmp2[userid]:
- tmp2[userid][x].save()
- del tmp[userid]
- del tmp1[userid]
- del tmp2[userid]
- wcsgroup.delUser(userid)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement