MinusKube / Netherboard

Scoreboard API for your Minecraft Sponge and Bukkit Plugins, supporting all versions from 1.7 to 1.19.
Apache License 2.0
77 stars 21 forks source link

Update method? #7

Closed ololjvNek closed 5 years ago

ololjvNek commented 5 years ago

Hello, I have an idea what could be added to this API. If it is possible, you could add a method like "UPDATE" which would update the scoreboard

MinusKube commented 5 years ago

Hello, you can already do that quite simply just by using a scheduler or something like that and just setting the lines, example:

new BukkitRunnable() {
    private int time = 0;

    @Override
    public void run() {
        scoreboard.set("Time: " + time, 0);

        time++;
    }
}.runTaskTimer(plugin, 0, 20);