Fix bug where failed message was shown when folder creation succeeded

This commit is contained in:
GeorgH93 2019-07-11 15:46:13 +02:00
parent 128dc2bee1
commit 18d2cd4534
No known key found for this signature in database
GPG Key ID: D1630D37F9E4B3C8
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>at.pcgamingfreaks</groupId>
<artifactId>Minepacks</artifactId>
<version>2.0.7</version>
<version>2.0.8-RC1</version>
<scm>
<connection>scm:git:git@github.com:GeorgH93/Minepacks.git</connection>

View File

@ -66,7 +66,7 @@ public Database(Minepacks mp)
maxAge = plugin.getConfiguration().getAutoCleanupMaxInactiveDays();
unCacheStrategie = bungeeCordMode ? new OnDisconnect(this) : UnCacheStrategie.getUnCacheStrategie(this);
backupFolder = new File(this.plugin.getDataFolder(), "backups");
if(!backupFolder.exists() && backupFolder.mkdirs()) mp.getLogger().info("Failed to create backups folder.");
if(!backupFolder.exists() && !backupFolder.mkdirs()) mp.getLogger().info("Failed to create backups folder.");
}
public void init()