Description
When the server has been empty for a specified period of time this mod runs /stop.
Config
In the config file you can set the amount of time in seconds that the server can be empty before it shuts down. The default is 5 minutes
Source Code
The source code can be found on my github at: https://github.com/JoshuaBowerman/minecraft-empty-shutdown Feel free to change the mod to do exactly what your looking for. if you don't know how and need something added reach out.