How does GUIAnnouncements stop the server when restarting?Solved

Hi there!
I just have a quick question. So recently I have been using my host scheduled task feature to restart my server every morning to prevent lag from occurring. I just found out that their way of stopping the server doesn't save everything properly. The problem is that some people are getting kicked out of their Clans because the host simply kills the process completely. Therefore I need to find another way to restart my server. GUIAnnouncements seems to be amazing and I have been using it for a while, only to "notify" the players about the restart though. I haven't enabled the "Restart My Server" variable yet.

So my question is: How does GUIAnnouncements stop the server? 
It would be amazing if the plugin shuts down the server by executing the server.save command followed by the quit command. That way I can make sure that the server shuts down properly.

Thank you so, so much in advance!
- Hyppa

I think I got my answer when taking a quick look at the code...

if (RestartServer) {
    rust.RunServerCommand("save");
    timer.Once(3, () => rust.RunServerCommand("restart 0"));
}

I am sorry for asking before checking myself first but hopefully this can help others!
So basically it runs the save command and 3 seconds after that it runs the restart command which is perfect for me at least! Super nice plugin! Thank you! :)

Locked automatically