-
Type: Bug
-
Resolution: Fixed
-
Priority: Minor
-
None
-
Affects Version/s: None
-
This server is running CraftBukkit version git-Spigot-9de398a-9c887d4 (MC: 1.14.4) (Implementing API version 1.14.4-R0.1-SNAPSHOT)
-
Yes
The PlayerRespawnEvent fires when players 'respawn' after jumping into an end portal in the end. This did not happen on 1.13.2 and before. There is no clear reason why this is the case, considering there are portal and world change events already.
Because in a plugin of mine I assumed the respawn event meant the player died, it resulted in a bug where people teleporting from the end had their state reset. I had to introduce an extra check specific to MC 1.14+ to also check that the player's health is 0.
I have seen from the NMS code that the respawn logic after teleporting out of the end is very similar to when the player dies, but the event itself has no properties that allows me to check which kind of respawn occurred. Bed spawn might be an indicator, but is it reliable? I don't know if checking health is reliable either.
Just in case this is actually a bug and not an intended feature change of 1.14, I'm reporting this as a new issue.