title @a[tag=PreventEscape] times 0 50 10
title @a[tag=PreventEscape] subtitle {"text":"Do not go out of the map, please!","color":"aqua"}
title @a[tag=PreventEscape] title {"text":"! Warning !","bold":true,"color":"dark_aqua"}
execute @a[tag=PreventEscape] ~ ~ ~ tp @s @r[tag=Starting,type=!armor_stand]
execute @a[tag=PreventEscape] ~ ~ ~ tp @s @r[tag=InGame,type=!armor_stand]
execute @a[tag=PreventEscape] ~ ~ ~ playsound minecraft:entity.villager.no master @s
scoreboard players tag @a[tag=PreventEscape] remove PreventEscape