Running a task later from a BukkitRunnable
Calling runTaskLater
or runTaskLaterAsynchronously
on a BukkitRunnable
will delay the task from executing for a specific amount of time. The amount of time is measured in ticks. Remember that there are 20 ticks every second. In our plugin Warper
, we will add a warp delay so that the player is teleported 5 seconds after running the warp command. We will accomplish this by running the task later.