timvisee / lazymc

💤 Put your Minecraft server to rest when idle.
GNU General Public License v3.0
579 stars 16 forks source link

Keep alive when using portal chunk loading? #31

Closed mmodrow closed 2 years ago

mmodrow commented 2 years ago

I don't know, how much insight into the world state and events within the server lazyMC actually has, but I was thinking about chunk loaders recently. I am about to build redstone machines on my server, that could break upon uncontrolled unloading. So I will add portal chunk loaders to keep the area loaded.

As of my current understanding this would not prevent the server from shutting down, if no one is connected. Currently I keep an afk player on via the minecraft console client, but if they get disconnected for any reason (or are no good option in the case) the server will still shut down.

Is there any way (or could one be added) to build something in-game to keep the server running until the redstone is finished?

timvisee commented 2 years ago

I don't know, how much insight into the world state and events within the server lazyMC actually has (...)

As little as possible.

The current version has no functionality for this. I believe there are three things you can do right now depending on what you want:

If you don't want the server to automatically restart when reconnecting, you can also use the last method without lazymc.

I hope any of these three approaches are helpful!

By the way, lazymc knows as little about the server as possible of constant API changes in every new Minecraft version,. It would otherwise be a lot of work to keep the tool compatible.

mmodrow commented 2 years ago

Thanks for the info. In this case I will combine long timeouts with the cli player.

Thanks fox explaining in detail.