EssentialsX

EssentialsX

2M Downloads

Respawn anchors lose their charge when rejoining the game

FellowNeighbour opened this issue ยท 10 comments

commented

Type of bug

Other unexpected behaviour

/ess dump all output

https://essentialsx.net/dump.html?bytebin=zxxko94zkO

Error log (if applicable)

No response

Bug description

When running the latest version of EssentialsX, Respawn anchors do not work properly. They will start losing charges the moment the player changes dimensions or logs on and off.

Steps to reproduce

  1. Go to the Nether and place a Respawn anchor
  2. Fully charge the anchor
  3. Log off and reconnect
  4. You will notice that it's lost a charge
  5. This also happens with the player changing dimensions.

Expected behaviour

The Respawn anchor works as intended and does not lose charges.

Actual behaviour

The Respawn anchor loses its charges because the player disconnected or changed dimensions.

Additional Information

No response

commented

Cannot reproduce.

commented

I am now able to reproduce

commented

Same issue here, cannot NOT reproduce. Running a fresh Paper 1.21.4 server, tried multiple versions of Paper and even the latest EssentialsX dev build to no avail. Happens when switching worlds, dying, or relogging.

Exactly, I do not understand how the maintainer cannot reproduce this. Just logging off, changing worlds, dimensions, whatever causes this. Default EssX config as well.

commented

Same issue here, cannot NOT reproduce. Running a fresh Paper 1.21.4 server, tried multiple versions of Paper and even the latest EssentialsX dev build to no avail. Happens when switching worlds, dying, or relogging.

commented

@avixk Could you also include a dump by running /ess dump all?

commented

Here's a clean one from the test server, latest dev build, and I tested again right after I logged in: https://essentialsx.net/dump.html?bytebin=cCTOeCnC2k

commented

Confirmed as a Paper issue, will be fixed by PaperMC/Paper#11960

commented

Ohh nice. getRespawnLocation() is called multiple times every teleport? odd. Maybe I'm misreading.

commented

either that or the world change event is being fired multiple times

commented

oh yeah, teleport and worldchangeevent are both called, maybe that's what I'm seeing. Not sure why teleporting even just nearby would require getting the respawn point though