Hi i want to check some blocks around player so what should i use? $player->getChunk()->getBlockId(); or $player->getLevel()->getBlockIdAt(); or any other way?
$player->getLevel()->getBlock()->getId(). It is the one that plugins are expected to use. But for fastest, I guess $player->getChunk is fastest, although when the player is at margin areas of a chunk, you will need to fetch another chunk, which makes it slower.