How kind of @lazertester to test the new scheduler!

This commit is contained in:
md_5
2013-07-24 17:32:08 +10:00
parent 600a1b4ff5
commit c54553d0f9
5 changed files with 70 additions and 65 deletions

View File

@@ -1,6 +1,5 @@
package net.md_5.bungee.api.scheduler;
import java.util.concurrent.TimeUnit;
import net.md_5.bungee.api.plugin.Plugin;
/**
@@ -31,11 +30,7 @@ public interface ScheduledTask
Runnable getTask();
/**
* Get the delay in the specified unit before this task will next be
* executed.
*
* @param unit the unit to get the delay in
* @return the time before the next execution of this task
* Cancel this task to suppress subsequent executions.
*/
long getDelay(TimeUnit unit);
void cancel();
}