Thanks to this change if backup was scheduled just before all players left and doBackupsOnEmptyServer = false, than this last backup will still be made.

2.x-1.16
szymon 2020-07-14 14:19:47 +02:00
parent c07f80b872
commit 55f5fdf1c4
1 changed files with 5 additions and 1 deletions

View File

@ -29,7 +29,11 @@ public class BackupScheduler {
scheduled = true;
}
} else if(!TextileBackup.config.doBackupsOnEmptyServer && server.getPlayerManager().getCurrentPlayerCount() == 0) {
scheduled = false;
if(scheduled && nextBackup >= now) {
TextileBackup.executorSerivece.submit(BackupHelper.create(server, null, true, null));
scheduled = false;
}
}
}
}