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.
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 likePlayerMoveEvent
andEntityTeleportEvent
, so I added a delayed task of one tick to account for that.