Class TeleportNotifier
java.lang.Object
games.stendhal.server.core.events.TeleportNotifier
Other classes can register here to be notified on teleports
- Author:
- hendrik
-
Method Summary
Modifier and TypeMethodDescriptionstatic TeleportNotifier
get()
Return the TeleportNotifier instance.void
notifies about a teleportvoid
registerListener(TeleportListener listener)
registers a TeleportListener.void
unregisterListener(TeleportListener listener)
unregisters a TeleportListener so that it will not be called anymore.
-
Method Details
-
get
Return the TeleportNotifier instance.- Returns:
- TeleportNotifier the Singleton instance
-
notify
notifies about a teleport- Parameters:
player
- player who teleportedplayerAction
- true, if the player actively teleported; false for all teleports
-
registerListener
registers a TeleportListener.- Parameters:
listener
- TeleportListener
-
unregisterListener
unregisters a TeleportListener so that it will not be called anymore.- Parameters:
listener
- TeleportListener
-