execute if score @s armor_lvl matches 4.. run return run tellraw @s {"text":"Your armor tier is already maxed!","color":"aqua"}

clear @s #pctf:armors

scoreboard players add @s armor_lvl 1

tellraw @s {"text":"Your armor tier was upgraded!","color":"aqua"}

execute if entity @s[team=red] run function pctf:logic/player/armor/red
execute if entity @s[team=blue] run function pctf:logic/player/armor/blue