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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user