EssentialsX

EssentialsX

2M Downloads

/unjail does not teleport player back to previous position even when teleport-when-freed: "back"

snarkyerica opened this issue ยท 3 comments

commented

Type of bug

Error in console, Other unexpected behaviour

/ess dump all output

https://essentialsx.net/dump.html?id=40ccccfbf3c847debc9e21e0bd228bbc

Error log (if applicable)

https://paste.gg/p/anonymous/fafa61f8e9664d41afb6466a1a87e97f

Bug description

/unjail works, but does not teleport the target player to their previous position if teleport-when-freed is set to "back" in config.yml

There is no error, or backtrace printed to the console.

Steps to reproduce

  1. set teleport-when-freed to "back" in config.yml
  2. /jail player
  3. /unjail player

Expected behaviour

Player is unjailed, and teleported back to their previous position.

Actual behaviour

Player is unjailed, but there is no message stating so for the person who unjailed them, showing an error instead.

Error: Cannot invoke "org.bukkit.Location.getWorld()" because "targetLoc" is null

Additional Information

CleanShot 2024-04-20 at 12 26 52

Server is running Paper version 488, for MC 1.20.4.

commented

I couldn't replicate this behavior locally with the latest dev builds, that target Paper 1.20.4. Could you try updating all your EssentialsX plugins to the latest dev builds and see if that fixes it? Additionally, could you edit your /ess dump all output above including the all argument? We're missing some key information, such as your Essentials config.

commented

Sure, I have updated the Essentials plugins (and removed the Discord plugin, as it was disabled due to no configuration anyway).

The outcome is the same.

https://essentialsx.net/dump.html?id=8c3a843faab94f82a2a1c8bd1e13d22e

commented

I was able to get it to give me a stack trace, had to set debug to true in the config.

https://paste.gg/p/anonymous/b826bd0f191b4de2bdbfbd07bc159caa