This is a convenient and easy to use API for creating scoreboards. Works on PocketMine-MP 5
Example application:
if(is_null($board = ScoreBoard::create($player, [ 2 => "§aName:§f " . $player->getName(), 3 => "§acreated via", 4 => "§aScoreLens", 6 => "§aOnline:§f " . count(Server::getInstance()->getOnlinePlayers()), 7 => "§gYour website" ]))) { return; } $board->setName("§l§cTest§fName"); $board->show(); Result:
How to update: Create a task in which you will send the players scorboards, it is convenient because of the fact that you can choose your own time update.
board - Hide or show the scoreboard, also has a sound


