Hytale does not automatically pause when there are no users on the server. I am trying to create a set of automatic triggers in AMP to pause the server using the console command /time pause --world default with the following:
- The last user leaves the server
- The first user joins the server
- The application state changes from started→Ready
However, since the server remembers its paused state when shutdown, and the /time pause --world default is a toggle, there’s no way to reliably tell if the server was paused the last time it stopped (for example, if it crashed).
I would like to know if there’s a way to read from the console output in AMP and determine whether the /time pause command actually paused or resumed the server clock, or some other method of keeping track in AMP of the server pause state.