PlayerMoveEvent vs PlayerTeleportEvent

Discussion in 'Plugin Development' started by EdGruberman, Apr 22, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    EdGruberman Retired Staff

    I've noticed when a player dies they trigger a PlayerTeleportEvent returning to spawn and a PlayerMoveEvent at the same time.

    Is there an easy/simple way to detect such from within the PlayerMoveEvent (that it was a teleport that initially caused it?)

    If the PlayerMoveEvent is cancelled, does that cancel the PlayerTeleportEvent or vice versa?
     
Thread Status:
Not open for further replies.

Share This Page