- Compatible API Versions
- 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:
Hot to use:
How to create a scoreboard:
How to add a score:
How to remove a score:
How to set a scoreboard for the player:
How to remove the scoreboard:
How to update a score:
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" );
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 );
Java:
DisplayEntry positionEntry = scoreboardDisplay.addLine( "X: " + player.getFloorX() + " Y: " + player.getFloorY() + " Z: " + player.getFloorZ(), 4 );
scoreboardDisplay.removeEntry( positionEntry );
Java:
ScoreboardAPI.setScoreboard( player, scoreboard );
Java:
ScoreboardAPI.removeScorebaord( player, scoreboard );
Java:
scoreboardDisplay.removeEntry( positionEntry );
scoreboardDisplay.addLine( "X: " + player.getFloorX() + " Y: " + player.getFloorY() + " Z: " + player.getFloorZ(), 4 );