local position = Position(1269, 802, 7) -- where you want the player to be teleported on stepping in the tile
local temple = Position(1000, 1000, 7) -- this is the temple position
local time = 10 * 60 -- this is 10 minutes
function onStepIn(creature, item, position, fromPosition)
if creature:isPlayer() then
creature:teleportTo(position, false)
addEvent(function()
creature:teleportTo(temple, false)
creature:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE)
end, config.time*1000)
end
return true
end