Let the server rest while there are no players online
This mod allows you to freeze your server when no players are online.
It does this via these commands:
This mod is also very configurable. You can change the delay between checking players and freezing, you can set a TPS for the server to run at while it is slumbering, and you can manually toggle the mod on and off. All of these settings can be accessed in slumber.properties in your config folder. Save those server resources!!!
For Minecraft 1.20.2 and below, this mod requires Fabric-Carpet!