コード例 #1
0
 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);
 }
コード例 #2
0
 public AutoWorldSave() {
   TaskRegistry.registerRecurringTask(
       this, 0, BackupConfig.worldSaveInterval, 0, 0, 0, BackupConfig.worldSaveInterval, 0, 0);
 }