Delayed Task - Lightest Method

Discussion in 'Plugin Development' started by xtremetom, Feb 26, 2014.

Thread Status:
Not open for further replies.
  1. What is the lightest method of calling a delayed task?

    We all know old faithful:
    Code:
    Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable() {
      public void run() {
      //some code
      }
    }, 200);
    But I hear that can be pretty heavy on the server, especially with it occurring often.
     
  2. Offline

    1Rogue

    Using the scheduler is fine, it will only be heavy on the server if you repeatedly run intensive code (in which case you should improve the code, not the executor).
     
Thread Status:
Not open for further replies.

Share This Page