1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2026-02-20 02:33:15 +01:00

ZipLibrary static abuse removal

This commit is contained in:
nossr50
2019-09-23 20:03:16 -07:00
parent 1c2d1fa56f
commit 2735cb1666
2 changed files with 33 additions and 25 deletions

View File

@@ -99,6 +99,7 @@ public class mcMMO extends JavaPlugin {
private ItemTools itemTools;
private PermissionTools permissionTools;
private WorldGuardUtils worldGuardUtils;
private ZipLibrary zipLibrary;
/* Never-Ending tasks */
private BleedTimerTask bleedTimerTask;
@@ -316,7 +317,8 @@ public class mcMMO extends JavaPlugin {
if (getConfigManager().getConfigAutomatedBackups().isZipBackupsEnabled()) {
// Remove other tasks BEFORE starting the Backup, or we just cancel it straight away.
try {
ZipLibrary.mcMMOBackup();
zipLibrary = new ZipLibrary(this);
zipLibrary.mcMMOBackup();
} catch (IOException e) {
getLogger().severe(e.toString());
} catch (Throwable e) {