gamemode adventure @s
tag @s remove respawn
clear @s
function cf:giveitems/give
scoreboard players set @s bye 0

execute if score .map map = .1 map if entity @s[team=blue] run tp @s 1081 36 1023
execute if score .map map = .1 map if entity @s[team=red] run tp @s 986 36 1023

execute if score .map map = .2 map if entity @s[team=blue] run tp @s -1037 58 -1093
execute if score .map map = .2 map if entity @s[team=red] run tp @s -1029 58 -953

execute if score .map map = .3 map if entity @s[team=blue] run tp @s -967 119 991
execute if score .map map = .3 map if entity @s[team=red] run tp @s -1041 119 993

execute if score .map map matches 4 if entity @s[team=blue] run tp @s 977 109 -930
execute if score .map map matches 4 if entity @s[team=red] run tp @s 991 109 -1036

execute if score .map map matches 5 if entity @s[team=blue] run tp @s -2042.00 94.00 -1910.00
execute if score .map map matches 5 if entity @s[team=red] run tp @s -2042.00 94.00 -2034.00

execute if score .map map matches 6 if entity @s[team=blue] run tp @s -1955 101 2089
execute if score .map map matches 6 if entity @s[team=red] run tp @s -1953 101 1980