Class LoginNotifier
java.lang.Object
games.stendhal.server.core.events.LoginNotifier
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 Summary
Modifier and TypeMethodDescriptionvoid
addListener(LoginListener listener)
Adds a LoginListener.static LoginNotifier
get()
Returns the LoginNotifier instance.void
onPlayerLoggedIn(Player player)
This method is invoked by Player.create().void
removeListener(LoginListener listener)
Removes a LoginListener.
-
Method Details
-
get
Returns the LoginNotifier instance.- Returns:
- LoginNotifier the Singleton instance
-
addListener
Adds a LoginListener.- Parameters:
listener
- LoginListener to add
-
removeListener
Removes a LoginListener.- Parameters:
listener
- LoginListener to remove
-
onPlayerLoggedIn
This method is invoked by Player.create().- Parameters:
player
- the player who logged in
-