[go: up one dir, main page]

Skip to content

ohYanoox/ScoreBoardAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

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