# --- Portals --- on region enter: wait 1 tick if "%event-region%" contains "_portal_to_lobby": teleport player to world "%player's world%" connect player to "lobby" on region exit: wait 1 tick if "%event-region%" contains "_portal_to_lobby": teleport player to world "%player's world%" connect player to "lobby"