command scheduler spigot code example
Example: spigot scheduler
Bukkit.getScheduler().scheduleSyncRepeatingTask(this, new Runnable() {
public void run() {
}
}, 20, 20);
Bukkit.getScheduler().scheduleSyncRepeatingTask(this, new Runnable() {
public void run() {
}
}, 20, 20);