So, I'm saving a block's coordinates into my config file in PlayerInteractEvent using PHP: $this->getConfig()->setNested($player->getLevel()->getFolderName() . "." . $this->mode, array($block->getX(), $block->getY() + 2, $block->getZ())); $this->getConfig()->save(); while PHP: $block = $event->getBlock(); . It basically works, but somehow the x and the z coordinate is being saved wrong, when tping to them, it's not the coordinate of the block I clicked on(Around 3 blocks away from the block I tapped). Anyone has got a fix or a reason for this?
Are you using: PHP: $pl->teleport(new Position($x+0.5, $y, $z+0.5)); ? If you forgot +0.5, your problem has been solved.