mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-10-20 00:00:39 +00:00
17 lines
344 B
Python
17 lines
344 B
Python
from playersData import pdata
|
|
import time
|
|
import _thread
|
|
|
|
def check():
|
|
_thread.start_new_thread(updateProfilesJson,())
|
|
|
|
|
|
def updateProfilesJson():
|
|
profiles=pdata.get_profiles()
|
|
|
|
for id in profiles:
|
|
if "spamCount" not in profiles[id]:
|
|
profiles[id]["spamCount"]=0
|
|
profiles[id]["lastSpam"]=time.time()
|
|
|
|
pdata.commit_profiles(profiles)
|