Skip to content

Releases: OneBeuHu/ScoreLens

ScoreLens 2.2.1

26 Nov 15:23
7e7b5da
Compare
Choose a tag to compare

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

21 Oct 20:33
265e663
Compare
Choose a tag to compare

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

ScoreLens 1.0.1

17 Apr 16:00
395c901
Compare
Choose a tag to compare

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

18 Jan 01:55
7982abc
Compare
Choose a tag to compare

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