runTaskAsynchronously

public synchronized BukkitTask runTaskAsynchronously(Plugin plugin)

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

Schedules this in the Bukkit scheduler to run asynchronously.

Return

getClassById BukkitTask that contains the id number

Parameters

plugin

the reference to the plugin scheduling task

See also

Throws

if plugin is null

if this was already scheduled