Resource Restart Manager (tested on Fx-Server)

Hi,

Because I was sick to make no difference between the start and the restart I made a little tool to do this.
This is pretty easy to use.

In the array, the key would be the name of the resource and the seconde array will be all the events you wanna trigger on the restart.
You can manage the 'tick rate", but 40 seems fine, I don’t have server lag with it.
Note : this is just for the server events.

I commented the code if you wanna improve it, maybe to make more than a stop listener and start sender… I don’t know
Maybe we can imagine to send data to it, which would be returned on the start (to save datas easly)
Let me know if you want it to be added !

restart-manager.rar (1.2 KB)

Izio

3 Likes

were do i change the uptime befor its restarts? like if i whant to have the server restarted every 4 ours ?