diff --git a/src/main/java/net/szum123321/textile_backup/core/create/BackupHelper.java b/src/main/java/net/szum123321/textile_backup/core/create/BackupHelper.java index 85f0e9f..5696786 100644 --- a/src/main/java/net/szum123321/textile_backup/core/create/BackupHelper.java +++ b/src/main/java/net/szum123321/textile_backup/core/create/BackupHelper.java @@ -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); diff --git a/src/main/java/net/szum123321/textile_backup/core/create/MakeBackupRunnable.java b/src/main/java/net/szum123321/textile_backup/core/create/MakeBackupRunnable.java index 6272a8c..fec0221 100644 --- a/src/main/java/net/szum123321/textile_backup/core/create/MakeBackupRunnable.java +++ b/src/main/java/net/szum123321/textile_backup/core/create/MakeBackupRunnable.java @@ -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());