Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/onebeuhu/scorelens
This is a convenient and easy to use API for creating scoreboards. Works on PocketMine-MP 5
https://github.com/onebeuhu/scorelens
mcbe-plugin mcpe-plugin minecraft-bedrock-edition pocketmine-plugins scoreboard scoreboard-api
Last synced: 4 months ago
JSON representation
This is a convenient and easy to use API for creating scoreboards. Works on PocketMine-MP 5
- Host: GitHub
- URL: https://github.com/onebeuhu/scorelens
- Owner: OneBeuHu
- License: gpl-3.0
- Created: 2023-01-18T01:54:09.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-26T15:49:58.000Z (about 1 year ago)
- Last Synced: 2024-09-26T10:20:53.407Z (4 months ago)
- Topics: mcbe-plugin, mcpe-plugin, minecraft-bedrock-edition, pocketmine-plugins, scoreboard, scoreboard-api
- Language: PHP
- Homepage:
- Size: 43 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/OneBeuHu/ScoreLens/assets/109813776/bc3d7904-4cc3-4a3c-8317-a3588d698058)
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](https://github.com/OneBeuHu/ScoreLens/assets/109813776/d3646aa6-70a9-493c-8f12-6ae828fff4ed)
# Commands
board - Hide or show the scoreboard, also has a sound
![image](https://github.com/OneBeuHu/ScoreLens/assets/109813776/6b121cc0-28e5-4e84-91b8-fb6994d5eb6f)