Lightweight & Async packet-based scoreboard using FastBoard API, implementing animations, tab and supporting all versions.
If you want to integrate SternalBoard to your proyect, you can use Maven and Gradle: Before nothing, remember that you need jitpack for it (https://jitpack.io/#ShieldCommunity/SternalBoard)
<dependency>
<groupId>com.github.ShieldCommunity</groupId>
<artifactId>SternalBoard</artifactId>
<version>2.2.9</version>
<scope>compile</scope>
</dependency>
plugins {
id 'com.github.johnrengelman.shadow' version '7.1.2'
}
repositories {
mavenCentral()
}
dependencies {
implementation 'com.github:shieldcommunity:2.2.9'
}
shadowJar {
relocate 'com.shieldcommunity.sternalboard', 'you.yourpackage.like'
}
plugins {
id("com.github.johnrengelman.shadow") version("7.1.2")
}
repositories {
mavenCentral()
}
dependencies {
implementation("com.github:shieldcommunity:2.2.9")
}
shadowJar {
relocate("com.shieldcommunity.sternalboard", "you.yourpackage.like")
}
If you just don't want to use a dependency-manager, you can copy our api classes to your proyect.
With SternalBoard, it's really easy to set your first scoreboard!
Either you can use our method of #setBoard, or manually.
public class ExampleBoard {
public void setYourScoreboard(Player player){
SternalBoardHandler board = new SternalBoardHandler(player);
board.updateTitle(ChatColor.GREEN+
"Hypixel.net" //You can make it configurable trough strings tho
);
board.updateLines("Hello", //You can do lines as your version allows!
"Bye",
"Hello again :)"
);
}
}