this shall help you http://forums.pocketmine.net/threads/point-compass.8630/ to others, is there a more UPDATED method that does not require using packets directly? for the nearest, you can try PHP: $player = getCurrentPlayer();$dist = null;$closest = null;foreach(getPlayersInLevel($player) as$other){if($dist == null OR ($tmpdist = $player->dist($other))<$dist){$closest = $other$dist = $tmpdist}else continue;}pointCompass($player,$closest); Putting it in a task if you want it to update frequently
Neither is getPlayersInLevel. It's pseudo code, which means it's more of an outline or prototype. It's not designed to be a working example.
it's my way to catching people who only know how to copy code, without UNDERSTANDING it yet not hard to be understand i thought getPlayersInLevel() and pointCompass() should already make it very clear since these method clearly dont exist my fault should have make it more obvious it's pseudo code next time
I have seen that for example "point compass" pseudocode is ... but I thought that there is in Pocketmine perhaps a function with $player->dist()