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

PlayerRespawnEvent fires when players teleport from the end back to the main world

XMLWordPrintable

    • 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.

            Unassigned Unassigned
            bergerkiller Irmo van den Berge
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: