I want to do something if a plugin is unloaded because the server is restarting. I am probably missing it, but how can I detect if the server is in the middle of a restart?
Detecting a server restart?
Discussion in 'Rust Development' started by Werkrat, Apr 12, 2018.
-
Code:
if (Interface.Oxide.IsShuttingDown) { //... return; }
-
Wulf Community Admin
You can also use the OnServerShutdown hook or listen for the "restart" command as well.
-