runTaskLaterAsynchronously

public synchronized BukkitTask runTaskLaterAsynchronously(Plugin plugin, long delay)

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

Schedules this to 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

delay

the ticks to wait before running the task

See also

Throws

if plugin is null

if this was already scheduled