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

player.getBedSpawnLocation() returns null after log out/in in secondary worlds.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None

      When a plugin calls player.getBedSpawnLocation(), and that world is not the server default world (which stores the playerdata folder) it will return null after the player has logged out and back in.

      To reproduce:

      1) Have server with two normal worlds.
      2) Have player set bedspawn in world that is not the one with a playerdata folder.
      3) Have player log out, then back in.
      4) Test the player.getBedSpawnLocation()
      5) Find it null.

            Thinkofdeath Thinkofname
            LlmDl Llm Dl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: