daily pastebin goal
9%
SHARE
TWEET

Untitled

a guest Aug 12th, 2017 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def player_disconnect(ev):
  2.     userid = int(ev['userid'])
  3.  
  4.     if userid in tmp:
  5.         tmp[userid].player.lastconnect = time.time()
  6.         tmp[userid].player.name = database.removeWarnings(ev['es_username'])
  7.         tmp[userid].save()
  8.         tmp1[userid].save()
  9.         for x in tmp2[userid]:
  10.             tmp2[userid][x].save()
  11.  
  12.         del tmp[userid]
  13.         del tmp1[userid]
  14.         del tmp2[userid]
  15.  
  16.     wcsgroup.delUser(userid)
RAW Paste Data
Top