lazymc icon indicating copy to clipboard operation
lazymc copied to clipboard

Ability to start the server manually

Open Jipok opened this issue 2 years ago • 0 comments

Needed to perform work on the server. For example, I want to start the pregeneration of the world. Now I have to either disable lazymc, change the server settings, and start it manually. Or connect to the server and leave the client connected. Both options are very inconvenient.

I suggest accepting some or all of these changes:

  • add a command or keyboard shortcut that will start the server without players. Like #start
  • add a command or keyboard shortcut that will not allow the server to shutdown/pause when there are no players
  • grep the log for given messages and allow the server to be stopped only after that. You can either add built-in support for some mods, or/and let the user customize it himself. For example, here is what the chunky write when they are finished: [Chunky] Task finished for minecraft:the_nether. Processed: 35721 chunks (100.00%), Total time: 0:10:50
  • add an automatic check for server load or output to the logs and do not turn it off while work is being done
  • wake up the server on a schedule for certain jobs
  • add a command or key combination that will not allow to restart after a stop. You can even make an automatic check that the server was stopped manually using the command
  • do not start the server automatically if there is a "down" file in the folder. This will allow you to make backups correctly. Easy to use with scripts. It does not require any command implementation to manage and fiddle with ipc
  • automatic wakeup if the user entered a command for the server. Also keep the server from sleeping if the user is interacting with the console

Jipok avatar Mar 03 '23 07:03 Jipok