ScoreLens

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

GPL-3.0 License

Stars
4
Committers
1
ScoreLens - ScoreLens 2.2.1 Latest Release

Published by OneBeuHu 11 months ago

Fixed:

  • Fixed a bug with the board update

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:

  • Added a new LineException exception that is called when a score given above the maximum value ( 16 )
  • Changed the access modifier to __construct for Scoreboard.
ScoreLens - ScoreLens 2.1.0

Published by OneBeuHu about 1 year ago

Added support for 5.0.0
Changed the creation and interaction with the ScoreBoard

ScoreLens - ScoreLens 1.0.1

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);
ScoreLens - ScoreLens 1.0.0

Published by OneBeuHu almost 2 years ago

ScoreLens

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

Using

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:

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

As you can see from the photo below - the update is happening

scorelensuupd

Commands

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

image