The library to improve and speed up your minecraft plugin coding.
Create the scoreboard with the constructor.
BetterScoreboard scoreboard = new BetterScoreboard(player, scoreboardId, displayName);
Set lines with the setLine
method. Be careful to order downwards!
scoreboard.setLine(line, content, updatable);
Update updatable lines with the updateLine
method.
scoreboard.updateLine(line, newContent);
Create the scheduler with the constructor.
BetterScheduler scheduler = new BetterScheduler(plugin);
Start a synchronized timer.
scheduler.runTimer(runnable, delay, period);
Start a asynchronized timer.
scheduler.runTimerAsync(runnable, delay, period);
Start a synchronized do, to do something later.
scheduler.runLater(runnable, delay, period);
Start a asynchronized do, to do something later.
scheduler.runLaterAsync(runnable, delay, period);
Cancel the current task.
scheduler.cancelTask();
Latest Release:
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.ezTxmMC</groupId>
<artifactId>BetterSpigotLib</artifactId>
<version>0.2.0</version>
</dependency>
Latest Snapshot:
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.ezTxmMC</groupId>
<artifactId>BetterSpigotLib</artifactId>
<version>v0.3-SNAPSHOT</version>
</dependency>