Skip to content

IWareQ/ScoreboardAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ScoreboardAPI

ScoreboardAPI is a simple library plugin for PowerNukkit/Nukkit Minecraft Bedrock core, that will help you to create your custom scoreboards with ease.

Usage

Scoreboard scoreboard = new Scoreboard("Test Scoreboard", DisplaySlot.SIDEBAR, 20);
// Update time in ticks (20 ticks = 1 second) or skip this option to disable automatic updates
scoreboard.setHandler(pl -> {
    scoreboard.addLine(pl.getName());
    scoreboard.addLine("§1"); // used for skip line
    scoreboard.addLine("random: " + Math.random());
    scoreboard.addLine("random: " + Math.random());
    scoreboard.addLine("random: " + Math.random());
    scoreboard.addLine("random: " + Math.random());
    scoreboard.addLine("random: " + Math.random());
    scoreboard.addLine("§2"); // used for skip line
    scoreboard.addLine("Online: " + Server.getInstance().getOnlinePlayers().size());
});

scoreboard.show(player);

Maven

Repository

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

Dependency

<dependency>
    <groupId>com.github.IWareQ</groupId>
    <artifactId>ScoreboardAPI</artifactId>
    <version>Tag</version>
</dependency>