Skip to content

Latest commit

 

History

History
44 lines (26 loc) · 1 KB

README.md

File metadata and controls

44 lines (26 loc) · 1 KB

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