Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RoboMWM opened this issue Feb 18, 2017 · 0 comments
Open

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

RoboMWM opened this issue Feb 18, 2017 · 0 comments
Labels
Non-vanilla behavior Behavior that DeathSpectating changes/has no replacement for. Feel free to PR a fix!

Comments

@RoboMWM
Copy link
Member

RoboMWM commented Feb 18, 2017

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.

@RoboMWM RoboMWM added the Non-vanilla behavior Behavior that DeathSpectating changes/has no replacement for. Feel free to PR a fix! label Feb 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Non-vanilla behavior Behavior that DeathSpectating changes/has no replacement for. Feel free to PR a fix!
Projects
None yet
Development

No branches or pull requests

1 participant