#Skript to teleport players when they quit in a specific region

1 messages · Page 1 of 1 (latest)

sinful wren
simple flint
#
    permission: bozokits.koth.tp.all
    permission message: &cHow'd you even find this command lol
    trigger:
        loop all players:
            if "%region at loop-player%" contains "kotharena":
                send "&cYou will be teleported to spawn in 5 minutes!" to loop-player
                wait 2 minutes
                send "&cYou will be teleported to spawn in 3 minutes!" to loop-player
                wait 2 minutes
                send "&cYou will be teleported to spawn in 1 minute!" to loop-player
                wait 1 minutes
                execute console command "/minecraft:tp %loop-player% 1000.500 158 987.500 -0.0 -3.3"
                send "&cYou have been teleported to spawn!" to loop-player
                wait 25 minutes
                execute console command "/koth now MysticalCave"
on quit:
    loop all players:
        if "%region at loop-player%" contains "kotharena":
            execute console command "/minecraft:tp %loop-player% 1000.500 158 987.500 -0.0 -3.3"```
#

I know the issue is with the on quit: but how can i make it only "on quit" for specific players in the region