Moved locking world form BackupHelper to MakeBackupRunnable

This commit is contained in:
szymon 2020-12-02 21:00:46 +01:00
parent 163626fb3d
commit 06f80a9175
2 changed files with 4 additions and 4 deletions

View File

@ -60,8 +60,6 @@ public class BackupHelper {
Statics.LOGGER.sendInfoAL(ctx, "Saving server...");
ctx.getServer().save(true, true, true);
Utilities.disableWorldSaving(ctx.getServer());
}
return new MakeBackupRunnable(ctx);

View File

@ -19,6 +19,7 @@
package net.szum123321.textile_backup.core.create;
import net.szum123321.textile_backup.Statics;
import net.szum123321.textile_backup.core.ActionInitiator;
import net.szum123321.textile_backup.core.create.compressors.*;
import net.szum123321.textile_backup.core.Utilities;
import net.szum123321.textile_backup.core.create.compressors.tar.LZMACompressor;
@ -40,8 +41,9 @@ public class MakeBackupRunnable implements Runnable {
@Override
public void run() {
try {
Statics.LOGGER.sendInfo(context.getCommandSource(), "Starting backup");
Statics.LOGGER.info("Starting backup");
Utilities.disableWorldSaving(context.getServer());
Statics.LOGGER.sendInfoAL(context, "Starting backup");
File world = Utilities.getWorldFolder(context.getServer());