Scoreboard API for your Minecraft Sponge and Bukkit Plugins.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bukkit/src/main
core/src/main/java/fr/minuskube/netherboard/api Added some Javadoc! Jun 15, 2017
gradle/wrapper Add gradle wrapper, add Gradle/Maven support, ignore .idea Jul 8, 2017
sponge/src/main/java/fr/minuskube/netherboard Update version to 1.1.1 Feb 12, 2019
.gitignore
LICENSE
README.md Update version to 1.1.1 Feb 12, 2019
build.gradle
settings.gradle Add Sponge implementation! (Not yet tested) May 3, 2017

README.md

Netherboard

Scoreboard API for your Minecraft Sponge and Bukkit Plugins.
You can use this as a Plugin, or just add it to your dependencies.

Features:

  • Works for all the Bukkit versions since 1.7 (even 1.13!).
  • Works with Sponge! (Tell me if a version is not compatible)
  • No blinking!
  • Max characters per line:
    • 1.7: 16 (Working on it to allow 48 characters)
    • 1.8+: 40 (Working on it to allow 72 characters, not sure if possible, we'll see)

TODO:

  • Allow more characters per line (Using teams)

Examples:

Bukkit

Create a board:

BPlayerBoard board = Netherboard.instance().createBoard(player, "My Scoreboard");

Create a board with your own Scoreboard object:

BPlayerBoard board = Netherboard.instance().createBoard(player, scoreboard, "My Scoreboard");

Get a player's board:

BPlayerBoard board = Netherboard.instance().getBoard(player);

When you have your board, you can do whatever you want with it:

// Set a line
// If there is already a line with this score, it will replace it.
board.set("Test Score", 5);

// Get a line from its score
board.get(5);

// Remove a line
board.remove(5);

// Change the name of the board
board.setName("My New Scoreboard");

// Delete the board
board.delete();

Sponge

Same thing than Bukkit, but the object is called SPlayerBoard and the methods requires Text objects instead of String ones.
NB: With Sponge, please do not create boards for different players with the same scoreboard.

Usage

To use the Netherboard API, either:

  • put it in the plugins folder of your server, add it to your dependencies in your plugin.yml (e.g. depend: [SmartInvs]) and add it to the dependencies in your IDE.
  • add it to the dependencies in your IDE and include it in your plugin jar.

You can download the latest version on the Releases page on Github.

You can also use a build system:

Gradle

repositories {
    mavenCentral()
}

dependencies {
    compile 'fr.minuskube:netherboard-bukkit:1.1.1'
    
    // Or if you use Sponge:
    // compile 'fr.minuskube:netherboard-sponge:1.1.1'
}

Maven

<dependency>
  <groupId>fr.minuskube</groupId>
  <artifactId>netherboard-bukkit</artifactId>
  
  <!--
  Or if you use Sponge:
  
  <artifactId>netherboard-sponge</artifactId>
  -->
  
  <version>1.1.1</version>
</dependency>

Issues:

If you have a problem with the API, or you want to request a feature, make an issue here.