[SPIGOT-211] player.getBedSpawnLocation() returns null after log out/in in secondary worlds. Created: 13/Dec/14  Updated: 13/Dec/14  Resolved: 13/Dec/14

Status: Closed
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Llm Dl Assignee: Thinkofname
Resolution: Fixed Votes: 0
Labels: Beds, WorldServer()


 Description   

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.



 Comments   
Comment by FearThe1337 [ 13/Dec/14 ]

CB PR 49 submitted to fix this.

Generated at Mon Apr 21 21:46:25 UTC 2025 using Jira 10.3.5#10030005-sha1:190c783f2bd6c69cd5accdb70f97e48812a78d14.