This method doesn't work. I am testing to get the block near the player. PHP: public function onPlayerMove(PlayerMoveEvent $e){ $p = $e->getPlayer(); foreach($p->getBlocksAround() as $b){ if($b->getId() === 2){ $p->sendMessage("TRUE"); } } }