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

Fetch the current Bed/respawn anchor location of a player.

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • None
    • CraftBukkit version git-Spigot-379750e-82542d0 (MC: 1.16.2) (Implementing API version 1.16.2-R0.1-SNAPSHOT)
    • Yes

      It's currently impossible to get the block responsible for a players current spawn anchoring, that if broken would break their spawn.

      This is useful when creating plugins that interact with the respawn system, such as EdGruberman's sleep, whose only remaining nms dependence is getting the actual bed anchor block.

      https://github.com/EdGruberman/Sleep/tree/master/src/edgruberman/bukkit/sleep/craftbukkit

      You can get the expected spawn location using the current API, which is not the current anchor, and workarounds by searching for the anchor can lead to issues when multiple beds/anchors are nearby.

            Unassigned Unassigned
            ryan_the_leach RyanTheLeach
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: