Answers for "bukkit scheduler timer"

0

bukkit scheduler delay task

Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {
    @Override
    public void run() {
        Bukkit.broadcastMessage("This message is shown after one second");
    }
}, 20L); //20 Tick (1 Second) delay before run() is called
Posted by: Guest on October-26-2020
1

bukkit scheduler

Bukkit.getScheduler().scheduleSyncRepeatingTask(this, new Runnable() {
    public void run() {
        
    }
}, 20, 20);
Posted by: Guest on January-14-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language