mirror of
https://github.com/hypervortex/VH-Bombsquad-Modded-Server-Files
synced 2025-11-07 17:36:08 +00:00
Update autoadmin.py
This commit is contained in:
parent
33021ff94d
commit
e411bdad47
1 changed files with 2 additions and 2 deletions
4
dist/ba_root/mods/tools/autoadmin.py
vendored
4
dist/ba_root/mods/tools/autoadmin.py
vendored
|
|
@ -92,11 +92,11 @@ def update_admins_and_vips():
|
|||
if player_id not in roles_data:
|
||||
if rank == 1 and score >= admin_score and player_id not in current_admin_ids:
|
||||
add_ids_to_role('admin', [player_id])
|
||||
elif rank in [2, 4] and score >= vip_score and player_id not in current_vip_ids:
|
||||
elif rank in [2, 3] and score >= vip_score and player_id not in current_vip_ids:
|
||||
add_ids_to_role('vip', [player_id])
|
||||
else:
|
||||
if rank != 1 and score <= admin_score and player_id in current_admin_ids:
|
||||
remove_all_ids_from_role('admin', [player_id])
|
||||
elif rank not in [2, 4] and score <= vip_score and player_id in current_vip_ids:
|
||||
elif rank not in [2, 3] and score <= vip_score and player_id in current_vip_ids:
|
||||
remove_all_ids_from_role('vip', [player_id])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue