AutoSave&Restart v1
#21
I found how to execute OS commands in lua, so I can rewritte this to execute a restart sh script on disable and make the plugin usefull, because this way you get free ram.
Reply
Thanks given by:
#22
Free RAM? I think you get it from here: http://www.downloadmoreram.com/
Reply
Thanks given by:
#23
The main problem with this is that the server can't really be stopped from anywhere else than its console. This hasn't been fixed, unfortunately, so even if you execute any termination commands from a plugin, the input thread will still keep the server alive (and will crash later on).
Reply
Thanks given by:
#24
Executing stop command in a plugin doesn't work?
Well, I could save-all and pkill MCServer, maybe.
Reply
Thanks given by:
#25
I haven't tested recently, but I expect it not to work. This is because there's a special thread for reading the server console input, and that thread is waiting for the input, so it cannot be stopped externally in any other way than killing it.

If you save-all and kill the server, you might cause connected players to lose their data, because those are saved only when the players disconnect.
Reply
Thanks given by:
#26
And on kick?
Reply
Thanks given by:
#27
yes, kick is a disconnect as well. if you kick the players, they will be saved.
Reply
Thanks given by:




Users browsing this thread: 2 Guest(s)