When no players are present, time halts within the game; it recommences as soon as a player enters the world.
Tree In A Forest Mod
Does a tree falling in a forest create sound if no one witnesses it? Not at all.
This mod ensures that time freezes (across all game worlds) when there are no players online.
Illustrative Server-Output:
[11:42:41] [User Authenticator #1/INFO] (Minecraft) Player UUID is
[11:42:42] [Server thread/INFO] (tree_in_a_forest) Time is commencing.
[11:42:42] [Server thread/INFO] (Minecraft) [/127.0.0.1:56083] player logged in with entity id 87 at (92.99503511601426, 97.98752470333716, 475.98631121512824)
[11:42:42] [Server thread/INFO] (Minecraft) entered the game
[11:42:46] [Server thread/INFO] (Minecraft) disconnected: Lost connection
[11:42:46] [Server thread/INFO] (Minecraft) exited the game
[11:42:46] [Server thread/INFO] (tree_in_a_forest) Time is pausing.