execute if score @s authority <= @s pay run function ws:misc/police/mafiozpay
execute if score @s authority > @s pay run function ws:misc/police/mafiozauthority
execute as @a[tag=police,scores={police.killed=1..}] run function ws:misc/police/policebounty