If "respawn-at-home-bed" and "respawn-at-home" are set to true in the EssentialsX config, "respawn-at-anchor" is ultimately ignored. #5824
Labels
bug: unconfirmed
Potential bugs that need replicating to verify.
Type of bug
Other unexpected behaviour
/ess dump all
outputN/A
Error log (if applicable)
No response
Bug description
The bugged code is in the
onPlayerRespawn
method inEssentialsSpawnPlayerListener
.The
respawn-at-anchor
option works by simply returning without modifying the spawn location if the default Minecraft spawn is a respawn anchor and therespawn-at-anchor
option is set to true. However, if it isn't set to true, whilerespawn-at-home
andrespawn-at-home-bed
are, the respawn point will ultimately get set to the value of the methodgetBedSpawnLocation()
in the Spigot API. In spite of this method's name, it doesn't just get bed spawn locations, but also gets the location of respawn anchors.As a result, if a player's respawn point is set to a respawn anchor and
respawn-at-home-bed
andrespawn-at-home
are true, the player will still respawn at the respawn anchor.Steps to reproduce
respawn-at-anchor
to false, andrespawn-at-home
andrespawn-at-home-bed
to true in the Essentials configuration.Expected behaviour
Players should be unable to respawn at respawn anchors unless
respawn-at-anchor
is true.Actual behaviour
Players can respawn at respawn anchors if
respawn-at-home-bed
andrespawn-at-home
are set to true.Additional Information
No response
The text was updated successfully, but these errors were encountered: