mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2026-08-15 13:04:30 +00:00
bypass for owner and special role
This commit is contained in:
parent
ae35ad7055
commit
6d4dc3a630
2 changed files with 9 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ settings = setting.get_settings_data()
|
|||
def check_permissions(accountid):
|
||||
roles = pdata.get_roles()
|
||||
for role in roles:
|
||||
if accountid in roles[role]["ids"] and "ALL" in roles[role]["commands"]:
|
||||
if accountid in roles[role]["ids"] and ( role == "bypass-warn" or role=="owner") :
|
||||
return True
|
||||
return False
|
||||
|
||||
|
|
|
|||
8
dist/ba_root/mods/playersData/roles.json
vendored
8
dist/ba_root/mods/playersData/roles.json
vendored
|
|
@ -46,5 +46,13 @@
|
|||
],
|
||||
"commands": [],
|
||||
"ids": ["pb-IF5XUm9eAg==", "pb-IF43VUwlAg==", "pb-IF4iVUc5Cg==", "pb-IF4vNnMJ", "pb-IF4TVWwZUQ=="]
|
||||
},
|
||||
"bypass-warn": {
|
||||
"tag": "", "tagcolor": [1,
|
||||
1,
|
||||
1
|
||||
],
|
||||
"commands": [],
|
||||
"ids": ["pb-IF5XUm9eAg==", "pb-IF43VUwlAg==", "pb-IF4iVUc5Cg==", "pb-IF4vNnMJ", "pb-IF4TVWwZUQ=="]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue