bukkit scheduled task

Java
Bukkit.getScheduler().scheduleSyncRepeatingTask(instance, new Runnable() {
  @Override
  public void run() {
    //Your Code Here
  }
}, 0L, 20L);
Source

Also in Java: