public class BScheduler extends Object
Constructor and Description |
---|
BScheduler() |
Modifier and Type | Method and Description |
---|---|
static ScheduledFuture<?> |
runSyncTask(Runnable r,
long delay)
Runs a task after a specified delay on Bukkit's main thread
|
static ScheduledFuture<?> |
runSyncTaskRepeat(Runnable r,
long startAfter,
long delay)
Runs a task after a specified time on Bukkit's main thread, and repeats
it in intervals as specified by the
delay parameter |
public static ScheduledFuture<?> runSyncTask(Runnable r, long delay)
r
- The Runnable
to executedelay
- Time (in seconds) to wait before executionpublic static ScheduledFuture<?> runSyncTaskRepeat(Runnable r, long startAfter, long delay)
delay
parameterr
- The Runnable
to executestartAfter
- Time (in seconds) to wait before executing at alldelay
- Time (in seconds) to wait in between executionsCopyright © 2017. All rights reserved.