$scoreboard players add #blue_players game$(map_id) 1
team join blue
tag @s add playing
$execute if score @n[tag=map_lobby,scores={map_id=$(map_id)}] countdown matches 0 run function pctf:logic/player/respawn with storage pctf:map input
$execute if score @n[tag=map_lobby,scores={map_id=$(map_id)}] countdown matches 1.. run tp @s @n[tag=map_lobby,scores={map_id=$(map_id)}]