execute if score @s armor_enchant_lvl matches 3.. run return run tellraw @s {"text":"Your armor enchantment level is already maxed!","color":"aqua"}

clear @s #pctf:armors

scoreboard players add @s armor_enchant_lvl 1

tellraw @s {"text":"Your armor enchantment level was increased!","color":"aqua"}

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