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 TypeMethodDescriptionvoidaddListener(LogoutListener listener) Adds a LogoutListener.static LogoutNotifierget()Returns the LogoutNotifier instance.voidonPlayerLoggedOut(Player player) This method is invoked by TODOvoidremoveListener(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
-