Moved locking world form BackupHelper to MakeBackupRunnable
							parent
							
								
									163626fb3d
								
							
						
					
					
						commit
						06f80a9175
					
				|  | @ -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); | ||||
|  |  | |||
|  | @ -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()); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue