Answers for "bukkit run task later?"

0

bukkit delayed 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 scheduled task

Bukkit.getScheduler().scheduleSyncRepeatingTask(instance, new Runnable() {
  @Override
  public void run() {
    //Your Code Here
  }
}, 0L, 20L);
Posted by: Guest on March-28-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language