Skip to content

This library will improve the Spigot API and it's code so that it works much better and it's completly easier to code with this.

Notifications You must be signed in to change notification settings

ezTxmMC/BetterSpigotLib

Repository files navigation

BetterSpigotLib

The library to improve and speed up your minecraft plugin coding.

Examples

BetterScoreboard

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);

BetterScheduler

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();

Dependency

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>

About

This library will improve the Spigot API and it's code so that it works much better and it's completly easier to code with this.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages