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