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 TeleportNotifierget()Return the TeleportNotifier instance.voidnotifies about a teleportvoidregisterListener(TeleportListener listener) registers a TeleportListener.voidunregisterListener(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
-