Releases: OneBeuHu/ScoreLens
Releases · OneBeuHu/ScoreLens
ScoreLens 2.2.1
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 2.1.0
Added support for 5.0.0
Changed the creation and interaction with the ScoreBoard
ScoreLens 1.0.1
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 1.0.0
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:
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
Commands
hsc - Hide or show the scoreboard, also has a sound