WorldGuard icon indicating copy to clipboard operation
WorldGuard copied to clipboard

Fixed teleporting and moving not updating the region first time

Open JavierLeon9966 opened this issue 2 years ago • 1 comments

When doing $this->plugin->updateRegion($player) it will update the player’s region with the player’s position before it actually goes to that position in events like PlayerMoveEvent and EntityTeleportEvent, so I added a delayed task of one tick to account for that.

JavierLeon9966 avatar Jun 01 '22 17:06 JavierLeon9966

Thanks for your pr, i had resolved it with an other resolution, but i think, i will add the request after 1 tick in our code :) thanks for your help

suerion avatar Jun 10 '22 05:06 suerion