Skip to content

"Your bed was missing or obstructed" message does not print #12

@RoboMWM

Description

@RoboMWM

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 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Non-vanilla behaviorBehavior that DeathSpectating changes/has no replacement for. Feel free to PR a fix!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions