This is a convenient and easy to use API for creating scoreboards. Works on PocketMine-MP 5
GPL-3.0 License
Fixed:
Innovations:
New setScene and getScene methods have been added to the Scoreboard. Scenes were also added as an optional parameter in Scoreboard::create().
The scenes should help track the condition of the board
Safety:
Published by OneBeuHu about 1 year ago
Added support for 5.0.0
Changed the creation and interaction with the ScoreBoard
Published by OneBeuHu over 1 year ago
Changed the method for creating a scoreboard:
Previously:
$scoreboard = new ScoreBoard("Test", 8, $player);
$scoreboard->setLine(2, "Hello!");
$scoreboard->setLine(5, "This ScoreBoard");
$scoreboard->setLine(6, "was created");
$scoreboard->setLine(7, "with a ScoreLens");
$scoreboard->sendToPlayer();
Now:
$scoreboard = new ScoreBoard("Test", 8);
$scoreboard->setLine(2, "Hello!");
$scoreboard->setLine(5, "This ScoreBoard");
$scoreboard->setLine(6, "was created");
$scoreboard->setLine(7, "with a ScoreLens");
$scoreboard->sendTo($player);
Published by OneBeuHu almost 2 years ago
This is a convenient and easy to use API for creating scoreboards. Works on PocketMine-MP 4
Example application:
$scoreboard = new ScoreBoard("Test", 8, $player);
$scoreboard->setLine(2, "Hello!");
$scoreboard->setLine(5, "This ScoreBoard");
$scoreboard->setLine(6, "was created");
$scoreboard->setLine(7, "with an ScoreLens");
$scoreboard->sendToPlayer();
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.
As you can see from the photo below - the update is happening
hsc - Hide or show the scoreboard, also has a sound