Bug with teleporting outside border
moonies44 opened this issue · 2 comments
moonies44 commented
Issue i have found - scenario.
- a player has permission to bypass the chunky border.
- a second player does not have permission to pass the chunky border
- If a teleport is used (from any plugin such as essentials tpa, or tpall) to a player that doesn't have border bypass, the player who does not have permission to border byoass to the person whgo does will then be teleported on top of the nether roof.
hope this helps :3
1.17.1 paper.
pop4959 commented
Thanks for the report!
I think the issue here is mostly specific to the nether, as it's intended for teleport redirection to push you back into the border on the highest block currently. However with the roof that is quite a problem!
I will have to revisit the logic there and see if any improvements can be made.
pop4959 commented
@moonies44 I've changed the behavior in the latest build of Chunky and ChunkyBorder.
Now the redirected teleport elevation is the highest block below the maximum elevation in the world.
As always, if no valid location is found the player will teleport to the world spawn instead.