So, we all know what hanging is - the main thread freezes, and nobody can get on, server is frozen, and players soon get kicked off (and if im wrong then tell me). So, how would i counter that? I basically need to make a delayed task, check if the server has hung, and then restart it. I am currently doing it with commands (if a command has NOT been entered in 5 mins, restart), however this is inefficient, and still leaves a maximum of 10 mins downtime, whilst meanwhile members are leaving my server. Also, monitoring EVERY command? its just kinda inefficient. (Though i have tested it and it works, and restarted server after about 7 mins downtime) So, anyway, what other/better methods could i do for this, that would be efficient and could restart instantly? Thanks in advance for your ideas!