mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2024-11-14 10:45:23 +01:00
Fix bug where failed message was shown when folder creation succeeded
This commit is contained in:
parent
128dc2bee1
commit
18d2cd4534
2
pom.xml
2
pom.xml
@ -3,7 +3,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>at.pcgamingfreaks</groupId>
|
<groupId>at.pcgamingfreaks</groupId>
|
||||||
<artifactId>Minepacks</artifactId>
|
<artifactId>Minepacks</artifactId>
|
||||||
<version>2.0.7</version>
|
<version>2.0.8-RC1</version>
|
||||||
|
|
||||||
<scm>
|
<scm>
|
||||||
<connection>scm:git:git@github.com:GeorgH93/Minepacks.git</connection>
|
<connection>scm:git:git@github.com:GeorgH93/Minepacks.git</connection>
|
||||||
|
@ -66,7 +66,7 @@ public Database(Minepacks mp)
|
|||||||
maxAge = plugin.getConfiguration().getAutoCleanupMaxInactiveDays();
|
maxAge = plugin.getConfiguration().getAutoCleanupMaxInactiveDays();
|
||||||
unCacheStrategie = bungeeCordMode ? new OnDisconnect(this) : UnCacheStrategie.getUnCacheStrategie(this);
|
unCacheStrategie = bungeeCordMode ? new OnDisconnect(this) : UnCacheStrategie.getUnCacheStrategie(this);
|
||||||
backupFolder = new File(this.plugin.getDataFolder(), "backups");
|
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()
|
public void init()
|
||||||
|
Loading…
Reference in New Issue
Block a user