runTaskLaterAsynchronously

public abstract BukkitTask runTaskLaterAsynchronously(Plugin plugin, Runnable task, long delay)

Asynchronous tasks should never access any API in Bukkit. Great care should be taken to assure the thread-safety of asynchronous tasks.

Returns getClassById task that will run asynchronously after the specified number of server ticks.

Return

getClassById BukkitTask that contains the id number

Parameters

plugin

the reference to the plugin scheduling task

task

the task to be run

delay

the ticks to wait before running the task

Throws