Start an async repeat task @param r the runnable @param interval the interval in ticks @return the task id
(Runnable r, int interval)
| 254 | * @return the task id |
| 255 | */ |
| 256 | @SuppressWarnings("deprecation") |
| 257 | public static int ar(Runnable r, int interval) { |
| 258 | return Bukkit.getScheduler().scheduleAsyncRepeatingTask(Adapt.instance, r, 0, interval); |
| 259 | } |
| 260 | |
| 261 | /** |
| 262 | * Start an async repeating task for a limited time |