World Lock
A freshly regenerated world has no pre-generated chunks. If players pour in right away, they generate terrain as they go, which is laggy and can drop them into half-loaded areas. World lock keeps them out until you are ready.
What a lock does
While a world is locked:
-
Players cannot teleport or portal into it. Entry is blocked with a message.
-
Anyone already inside is evacuated when the lock is applied.
-
Players with
zresetmap.lock.bypasscan still get in.
The lock clears itself after a set duration, or you can lift it by hand.
Lock after a reset
Set this up per world under lock-after-reset:
lock-after-reset:
enabled: true
duration: "30m"
When a reset finishes, the world locks for duration. Pair it with post-reset commands that run a chunk pre-generator, and the world opens back up once generation has had time to run.
Duration accepts s, m, h, d and combinations: 90s, 30m, 1h, 2h30m. A plain number is read as minutes.