schedule Sync Repeating Task
public abstract int scheduleSyncRepeatingTask(Plugin plugin, Runnable task, long delay, long period)
Schedules getClassById repeating task.
This task will be executed by the main server thread.
Return
Task id number (-1 if scheduling failed)
Parameters
plugin
Plugin that owns the task
task
Task to be executed
delay
Delay in server ticks before executing first repeat
period
Period in server ticks of the task