Resource icon

ScoreboardAPI 1.0.0

Compatible API Versions
1.0.0
Sourcecode
https://github.com/LucGamesYT/ScoreboardAPI/releases/tag/1.0.0
Contributors
LucGamesHD
I know that I have already released a scoreboard plugin, but I decided to upload an extra plugin for the 1.0 is

Repository & Dependency:

XML:
<repository>
    <id>public</id>
    <url>http://repo.lucgameshd.de/repository/maven-public</url>
</repository>

<dependency>
    <groupId>de.lucgameshd</groupId>
    <artifactId>ScoreboardAPI</artifactId>
    <version>1.4</version>
</dependency>

Hot to use:
How to create a scoreboard:
Java:
Scoreboard scoreboard = ScoreboardAPI.createScoreboard();
ScoreboardDisplay scoreboardDisplay = scoreboard.addDisplay( DisplaySlot.SIDEBAR, "objectivename", "title" );
How to add a score:
Java:
scoreboardDisplay.addLine( "This is a line in a score", 0 );
scoreboardDisplay.addLine( "§a", 1 ); //free space
scoreboardDisplay.addLine( "Name: " + player.getName(), 2 );
scoreboardDisplay.addLine( "§b", 3); //free space
DisplayEntry positionEntry = scoreboardDisplay.addLine( "X: " + player.getFloorX() + " Y: " + player.getFloorY() + " Z: " + player.getFloorZ(), 4 );
How to remove a score:
Java:
DisplayEntry positionEntry = scoreboardDisplay.addLine( "X: " + player.getFloorX() + " Y: " + player.getFloorY() + " Z: " + player.getFloorZ(), 4 );
scoreboardDisplay.removeEntry( positionEntry );
How to set a scoreboard for the player:
Java:
ScoreboardAPI.setScoreboard( player, scoreboard );
How to remove the scoreboard:
Java:
ScoreboardAPI.removeScorebaord( player, scoreboard );
How to update a score:
Java:
scoreboardDisplay.removeEntry( positionEntry );
scoreboardDisplay.addLine( "X: " + player.getFloorX() + " Y: " + player.getFloorY() + " Z: " + player.getFloorZ(), 4 );
  • Like
Reactions: name
Author
LucGamesHD
Downloads
147
Views
521
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from LucGamesHD

Top