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

Prevent setting respawn location in EnterBedEvent

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • None
    • git-Spigot-8faa8b4-3d61a85 (MC: 1.15.2)
    • Yes

      Now that the vanilla respawn point mechanic somewhat changed, the API is outdated regarding it. BedEnterEvent should have similar functionality to BedLeaveEvent:

      setSpawnLocation(boolean setBedSpawn)
      shouldSetSpawnLocation()

      The only way to combat this forced respawn point is to save the previous respawn location and apply it to the player after the event, which is not ideal since player.getBedSpawnLocation() only allows us to access the actual respawn point and not the bed itself - hence removing the tie to his bed. The "Respawn Point Set"-message is currently forced no matter what.

            Unassigned Unassigned
            vildaberper Oskar Viberg
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: