Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ohYanoox/ScoreBoardAPI

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ScoreBoardAPI

ScoreBoardAPI is a PocketMine-MP 4.0.0 API that eases creating and managing scorehud

SETUP

Only put the api in the src of your plugin and use it :)

Sending a scoreboard to player

ScoreBoardAPI::sendScore(Player, "anyname");

add lines and fill it with text

ScoreBoardAPI::setScoreLine(Player, $line, string);

You can get the text that is located in the line of the scoreboard of the player you entered the function

ScoreBoardAPI::getLineScore(Player, $line;

To edit a line

https://www.php.net/manual/fr/function.str-replace.php

ScoreBoardAPI::editLineScore(Player, $line, $replace, $subject);

To delete a single ligne

ScoreBoardAPI::removeLine(Player, $line);

To check if the player has a scoreboard

ScoreBoardAPI::hasScore(Player)

To remove the player's scoreboard

ScoreBoardAPI::removeScore($player);

There you go! you can now create in any circumstance and modify scoreboards to the player

have a nice day ;)

Morty Proxy This is a proxified and sanitized view of the page, visit original site.