function pctf:logic/player/capture_flag/helmet
tag @s remove has_flag

execute if entity @s[tag=has_light_purple_flag] run function pctf:logic/player/capture_flag/light_purple
execute if entity @s[tag=has_yellow_flag] run function pctf:logic/player/capture_flag/yellow

function pctf:logic/player/capture_flag/reward