1. 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?
     
  2. Code:
    if (Interface.Oxide.IsShuttingDown)
    {
        //...
        return;
    }
     
  3. Wulf

    Wulf Community Admin

    You can also use the OnServerShutdown hook or listen for the "restart" command as well.
     
  4. I knew I saw something like this before, thanks!
    I completely forgot about that one, thanks!