On a multiplayer server that stays running around the clock, the in-game day counter normally ticks upward into the thousands even while nobody is playing. You can stop the sky from moving whenever the server is empty so you always return to the exact time and weather you left behind.
How the Automatic Pause Works
Once the data pack is placed inside your world save's datapacks folder and loaded, the system runs automatically without requiring daily player input:
1. Play on your server as normal.
2. Have all connected players log off the server so the online player count reaches zero.
3. As soon as the server is empty, the data pack automatically stops both the daylight cycle and the weather timer.
While paused, the sun and moon stay locked in place, the current weather state does not clear or change, and your world's F3 day count is preserved.
Resuming the Cycle
You do not need to run a command to unfreeze the sky when you return:
1. Connect to the server as you normally would.
2. The moment a player joins the world, the data pack detects the connection and starts the sun, moon, and weather timers back up immediately.