Class LogoutNotifier

java.lang.Object
games.stendhal.server.core.events.LogoutNotifier

public final class LogoutNotifier extends Object
Other classes can register here to be notified when a player logs out. It is the responsibility of the LogoutListener to determine which players are of interest for it, and to store this information persistently.
Author:
markus
  • Method Details

    • get

      public static LogoutNotifier get()
      Returns the LogoutNotifier instance.
      Returns:
      LogoutNotifier the Singleton instance
    • addListener

      public void addListener(LogoutListener listener)
      Adds a LogoutListener.
      Parameters:
      listener - LogoutListener to add
    • removeListener

      public void removeListener(LogoutListener listener)
      Removes a LogoutListener.
      Parameters:
      listener - LogoutListener to remove
    • onPlayerLoggedOut

      public void onPlayerLoggedOut(Player player)
      This method is invoked by TODO
      Parameters:
      player - the player who logged out