mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-10-20 00:00:39 +00:00
added role , rank tag to spaz node
This commit is contained in:
parent
8d95248166
commit
14007f0b0e
11 changed files with 119 additions and 20 deletions
15
dist/ba_root/mods/playersData/pdata.py
vendored
15
dist/ba_root/mods/playersData/pdata.py
vendored
|
|
@ -81,11 +81,22 @@ def change_role_tag(role,tag):
|
|||
return "role not exists"
|
||||
|
||||
|
||||
def commit():
|
||||
def commit(_roles):
|
||||
global roles
|
||||
if _roles=={}:
|
||||
return
|
||||
f=open("roles.json",'w')
|
||||
json.dump(roles,f,indent=4)
|
||||
json.dump(_roles,f,indent=4)
|
||||
f.close()
|
||||
roles=_roles
|
||||
|
||||
def get_role(acc_id):
|
||||
global roles
|
||||
_roles =roles()
|
||||
for role in _roles:
|
||||
if acc_id in role["ids"]:
|
||||
return role
|
||||
|
||||
#======================= CUSTOM EFFECTS/TAGS ===============
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue