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

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

Open
snarkyerica opened this issue Apr 20, 2024 · 3 comments
Labels
bug: unconfirmed Potential bugs that need replicating to verify.

Comments

@snarkyerica
Copy link

snarkyerica commented Apr 20, 2024

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.

@snarkyerica snarkyerica added the bug: unconfirmed Potential bugs that need replicating to verify. label Apr 20, 2024
@ImDarkLaw
Copy link
Contributor

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.

@snarkyerica
Copy link
Author

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

@snarkyerica
Copy link
Author

snarkyerica commented Apr 21, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: unconfirmed Potential bugs that need replicating to verify.
Projects
None yet
Development

No branches or pull requests

2 participants