A Minecraft library for scheduling things.
- Minestom
- Spigot / Paper
repositories {
maven { url "https://repo.jorisg.com/snapshots" }
}
dependencies {
// minestom
implementation 'com.guflimc.brick.scheduler:minestom-api:1.0-SNAPSHOT'
// spigot
implementation 'com.guflimc.brick.scheduler:spigot-api:1.0-SNAPSHOT'
}
You can find the javadocs for all platforms here
Scheduler scheduler = new SpigotScheduler("name", plugin);
// async
scheduler.asyncLater(() -> {
System.out.println("poggers");
}, 1, ChronoUnit.SECONDS);
// sync
scheduler.syncLater(() -> {
System.out.println("poggers");
}, 1, ChronoUnit.SECONDS);