Class LoginNotifier

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

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

    • get

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

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

      public void removeListener(LoginListener listener)
      Removes a LoginListener.
      Parameters:
      listener - LoginListener to remove
    • onPlayerLoggedIn

      public void onPlayerLoggedIn(Player player)
      This method is invoked by Player.create().
      Parameters:
      player - the player who logged in