Reason for having this is:
- Spigot server now makes altering the end point of a move a "PLUGIN" type teleport, while it had been an "UNKNOWN" type teleport. In effect other plugins will activate teleport based features, assuming a feature based teleport, e.g. with resetting a /back location to where the player just was. Apart from enabling /back based cheats like "/back-glide" in theory, this is a highly undesirable situation, because it kills off either plugins features (disable fly check or disable feature plugins, due to not being able to distinguish).
So directions i am considering are:
- Fixing this with the current system somehow (needs reproducing with debug logs).
- Use ProtocolLib and nms-access to intercept and alter the implicit (non-Bukkit) teleport following cancelling the PlayerMoveEvent. Provided everything is accessible within nms (like last positions stored within entity and PlayerConnection), this would make the set back immediate like before, just better, because the PlayerMoveEvent is