local global_storage = 9000
local duration = 60 -- in minutes
function onTime(interval)
local time = os.time()
if Game.getStorageValue(global_storage) >= time then
Game.setWorldType(WORLD_TYPE_PVP_ENFORCED)
Game.setStorageValue(global_storage, time + (3 * 7 * 24 * 60 * 60))
addEvent(function()
Game.setWorldType(WORLD_TYPE_PVP)
end, duration * 60 * 1000)
end
return true
end