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