Added config option to disable automatic zip backups

This commit is contained in:
GJ
2013-02-15 07:50:32 -05:00
parent 5947ad5004
commit 11bd473f55
4 changed files with 12 additions and 6 deletions

View File

@@ -186,12 +186,14 @@ public class mcMMO extends JavaPlugin {
placeStore.saveAll(); // Save our metadata
placeStore.cleanUp(); // Cleanup empty metadata stores
// Remove other tasks BEFORE starting the Backup, or we just cancel it straight away.
try {
ZipLibrary.mcMMObackup();
}
catch (IOException e) {
getLogger().severe(e.toString());
if (Config.getInstance().getBackupsEnabled()) {
// Remove other tasks BEFORE starting the Backup, or we just cancel it straight away.
try {
ZipLibrary.mcMMObackup();
}
catch (IOException e) {
getLogger().severe(e.toString());
}
}
getLogger().info("Was disabled."); //How informative!