Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-1646

Player.getLocation equals PlayerMoveEvent.getTo

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • None
    • None

      It looks like on 1.9 the entity/player location is updated to the move end-point before event event handling.

      Calling player.getLocation during handling of PlayerMoveEvent will reflect the target location (event.getTo), which breaks all plugins relying on the old mechanics of having player.getLocation reflect event.getFrom or a micro move "between from and to" (for which no PlayerMoveEvent fired due to not exceeding any threshold).

      Plugins can't really know anymore if there has been untracked moves between. For anti cheating plugins this will mean more false positives in the first place.

      Set to 'major' due to the breaking nature, feel free to correct that .

            Thinkofdeath Thinkofname
            asofold asofold
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: