Class ShutdownHook

java.lang.Object
java.lang.Thread
com.djrapitops.plan.gathering.ShutdownHook
All Implemented Interfaces:
Runnable

@Singleton public class ShutdownHook extends Thread
Thread that is run when JVM shuts down.

Saves active sessions to the Database (PlayerQuitEvent is not called)

  • Constructor Details

  • Method Details

    • register

      public void register()
    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread