Skip to content

This is a convenient and easy to use API for creating scoreboards. Works on PocketMine-MP 5

License

Notifications You must be signed in to change notification settings

OneBeuHu/ScoreLens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ScoreLens

This is a convenient and easy to use API for creating scoreboards. Works on PocketMine-MP 5

Using

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:

image

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.

image

Commands

board - Hide or show the scoreboard, also has a sound

image