You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
None at the moment - or use a plugin that handles bed respawning (e.g. Multiverse)
Calling Player#getBedSpawnLocation will return null if the player has either never slept in a bed, or their home bed is missing/obstructed. Since I can't determine if a player set their bed beforehand (other than monitoring and storing whether a player set their bed either via PlayerBedEnter event and/or periodically checking Player#getBedSpawnLocation since plugins can also set a bedSpawnLocation), I can't determine when I should print this message or not.
If you'd like to implement the aforementioned solution, that'd probably be best as an addon, as that requires data storage.
The text was updated successfully, but these errors were encountered:
Recommendation
None at the moment - or use a plugin that handles bed respawning (e.g. Multiverse)
Calling
Player#getBedSpawnLocation
will return null if the player has either never slept in a bed, or their home bed is missing/obstructed. Since I can't determine if a player set their bed beforehand (other than monitoring and storing whether a player set their bed either via PlayerBedEnter event and/or periodically checkingPlayer#getBedSpawnLocation
since plugins can also set a bedSpawnLocation), I can't determine when I should print this message or not.If you'd like to implement the aforementioned solution, that'd probably be best as an addon, as that requires data storage.
The text was updated successfully, but these errors were encountered: