$execute unless score @s coins matches $(wool).. run return run tellraw @s {"text":"You don't have enough coins! ($(wool)c)","color":"red"}
execute if entity @s[team=blue] run give @s minecraft:blue_wool[item_name={"color":"gray","text":"Blue Wool"},tooltip_display={hidden_components:["can_place_on","can_break"]},can_place_on=[{blocks:"#pctf:wool_placeable"}],can_break=[{blocks:"#pctf:can_break"}]] 32
execute if entity @s[team=red] run give @s minecraft:red_wool[item_name={"color":"gray","text":"Red Wool"},tooltip_display={hidden_components:["can_place_on","can_break"]},can_place_on=[{blocks:"#pctf:wool_placeable"}],can_break=[{blocks:"#pctf:can_break"}]] 32
$function pctf:logic/player/coins/remove {amount: "$(wool)"}