Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 978 Bytes

File metadata and controls

24 lines (18 loc) · 978 Bytes

Scoreboard

Available on: Bukkit ✅ full · Velocity ❌ no proxy game state · BungeeCord ❌ no proxy game state · Hytale ⚠️ experimental, HyUI-based - see the feature matrix

BlueFoundation.Scoreboards creates packet-based sidebar scoreboards for individual players. It works from Minecraft 1.8 to modern versions without hard NMS dependencies.

BfScoreboard board = BlueFoundation.Scoreboards.create(player);
board.updateTitle("<gold>My Server</gold>");
board.updateLines(
        "<yellow>Online: <white>" + Bukkit.getOnlinePlayers().size(),
        "<yellow>Coins: <white>" + coins,
        "",
        "<gray>play.myserver.com"
);

// Update a single line later
board.updateLine(1, "<green>Coins: <white>" + updatedCoins);

// Remove it when done
board.delete();

Scoreboard text is parsed as MiniMessage by default. You can also pass Adventure Component values to updateTitle, updateLine and updateLines.