public class BukkitScheduler extends Object implements me.lorenzo0111.pluginslib.scheduler.IScheduler
| Constructor and Description |
|---|
BukkitScheduler(JavaPlugin plugin) |
| Modifier and Type | Method and Description |
|---|---|
void |
async(Runnable runnable)
Run a task asynchronously
|
void |
sync(Runnable runnable)
Run a task synchronously
|
public BukkitScheduler(JavaPlugin plugin)
plugin - Owner of the schedulerpublic void async(Runnable runnable)
async in interface me.lorenzo0111.pluginslib.scheduler.ISchedulerrunnable - Task to runpublic void sync(Runnable runnable)
sync in interface me.lorenzo0111.pluginslib.scheduler.ISchedulerrunnable - Task to run