@Override @Deprecated public BukkitTask runTaskTimerAsynchronously(Plugin plugin, BukkitRunnable task, long delay, long period) throws IllegalArgumentException { return task.runTaskTimerAsynchronously(plugin, delay, period); }
@Override public void onStart() { updater = getNewUpdater().runTaskTimerAsynchronously(plugin, 2L * 20L, UPDATER_INTERVAL); }
public void scheduleAsyncTask(long interval) { queueWriteThread.runTaskTimerAsynchronously(GlobalWarming.getInstance(), 0L, interval); }
public static void run(Plugin plugin, BukkitRunnable runnable, int delay, int period, boolean async) { if (async) { runnable.runTaskTimerAsynchronously(plugin, delay, period); } else { runnable.runTaskTimer(plugin, delay, period); } }
public synchronized BukkitTask runTaskTimerAsynchronously(Plugin plugin, long delay, long period, T value) throws IllegalArgumentException, IllegalStateException { this.setValue(value); return super.runTaskTimerAsynchronously(plugin, delay, period); }
public synchronized BukkitTask runTaskTimerAsynchronously(long delay, long period, T value) throws IllegalArgumentException, IllegalStateException { this.setValue(value); return super.runTaskTimerAsynchronously(MyPetApi.getPlugin(), delay, period); } }