AutoSave&Restart v1 - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Plugins (https://forum.cuberite.org/forum-1.html) +--- Forum: Plugin Releases (https://forum.cuberite.org/forum-2.html) +--- Thread: AutoSave&Restart v1 (/thread-864.html) |
AutoSave&Restart v1 - tonibm19 - 04-27-2013 AutoRestart is a plugin that allows you to restart the server or save the worlds every few hours. For default is configured to restart every 12 hours, and save all worlds every 3 minutes. Features: -Restart the server automatically. -Save all worlds automatically (MCServer does it, but with AutoSave&Restart the time in that the worlds are saved is configurable). Commands: /ar -Restart the server (like /restart) autorestart.autorestart /as -Save all worlds (like /save-all) autosave.autorestart Configuration (AutoRestart/main.lua) RestartTime: Time between each restart (in seconds) SaveTime: Time between each save (in seconds) RE: AutoRestart v0 - NiLSPACE - 04-27-2013 congratulations with your first plugin ;D there is only one thing but i don't think its your plugins fault. MCServer crashes when it restarts. RE: AutoRestart v0 - tonibm19 - 04-27-2013 (04-27-2013, 09:18 PM)STR_Warrior Wrote: congratulations with your first plugin ;D there is only one thing but i don't think its your plugins fault. MCServer crashes when it restarts.Sorry for that, but for me is working fine with latest MCServer. RE: AutoRestart v0 - NiLSPACE - 04-27-2013 i'll try to recompile MCServer EDIT: Well it still crashes for me. RE: AutoRestart v0 - tonibm19 - 04-27-2013 (04-27-2013, 09:26 PM)STR_Warrior Wrote: i'l try to recompile MCServerBut, it crashes with my plugin or with restart command? RE: AutoRestart v0 - NiLSPACE - 04-27-2013 when you use /ar RE: AutoRestart v0 - tonibm19 - 04-27-2013 (04-27-2013, 11:05 PM)STR_Warrior Wrote: when u use /arTry with /restart, if it crashes, it isn't a problem of my plugin. RE: AutoRestart v0 - xoft - 04-27-2013 Is there any benefit gained by restarting a server? I don't see any, because if there's anything that you gain by restarting, such as free memory or performance, then it's a bug in the server that should really be reported and fixed rather than worked-around. RE: AutoRestart v0 - NiLSPACE - 04-27-2013 nope it doesn't crash when i use /restart. but i think its a problem in the ExecuteConsoleCommand function in the source. RE: AutoRestart v0 - tonibm19 - 04-27-2013 (04-27-2013, 11:14 PM)xoft Wrote: Is there any benefit gained by restarting a server? I don't see any, because if there's anything that you gain by restarting, such as free memory or performance, then it's a bug in the server that should really be reported and fixed rather than worked-around.For me it's usefull, becouse sometimes server crashes after a few hours on, so I think autorestart can help. |