public static void registerRecurringTask( Runnable task, int delayHrs, int delayMin, int delaySec, int delayMilli, int intervalHrs, int intervalMin, int intervalSec, int intervalMilli) { TimedTaskWrapper wrapper = new TimedTaskWrapper(task); registerRecurringTask( wrapper, delayHrs, delayMin, delaySec, delayMilli, intervalHrs, intervalMin, intervalSec, intervalMilli); }
public AutoWorldSave() { TaskRegistry.registerRecurringTask( this, 0, BackupConfig.worldSaveInterval, 0, 0, 0, BackupConfig.worldSaveInterval, 0, 0); }