Solved Any server shutdown events or things?

Discussion in 'Plugin Development' started by zakkinu2, Sep 23, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    zakkinu2

    Is there any way at all that by any chance you can detect when a server is shutting down? onDisable doesnt count cause that can be just a reload.
     
  2. Offline

    xTrollxDudex

    zakkinu2
    Why would you want to do this? Your plugin won't work anymore though
     
  3. Offline

    zakkinu2

    xTrollxDudex I want it so if the server is shutting down it will remove the players form a list i have but if its just a reaload it wont do anything
     
  4. Offline

    Tirelessly

    Reload or shutdown, that list is going to be cleared automatically.
     
  5. Offline

    xTrollxDudex

    zakkinu2
    Either way they are still removed from the list if you don't persist it.
     
  6. Offline

    zakkinu2

    xTrollxDudex and Tirelessly i have it so onDisable it will save the list and on enable it will get the list back

    @xTrollxDudex and @Tirelessly all i want to know is if there is a way to detect between shutdown or restart if not then il have to do something else

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 4, 2016
  7. Offline

    The_Doctor_123

    zakkinu2
    As far as I know, you cannot detect if the server is shutting down unless you go deep down. It's really just a good idea to stop the game whether it is a reload or shutdown.
     
  8. Offline

    zakkinu2

    The_Doctor_123 Ok thanks a lot like always! thats all i wanted to know
     
Thread Status:
Not open for further replies.

Share This Page