# logic for game stats and stuff here

execute if score @s countdown matches 1 store result storage pctf:map input.win int 1 run scoreboard players set .win temp 0
execute if score @s countdown matches 1 run function pctf:logic/game/end/tp

execute if score @s countdown matches 1.. run scoreboard players remove @s countdown 1