Ver Fonte

Ensure the FlatFile directory exists.

Fixes #1842
Sean Porter há 11 anos atrás
pai
commit
d63c3fc6d0
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      src/main/java/com/gmail/nossr50/mcMMO.java

+ 3 - 0
src/main/java/com/gmail/nossr50/mcMMO.java

@@ -374,6 +374,9 @@ public class mcMMO extends JavaPlugin {
                 getLogger().warning("Failed to rename tools.yml to tools.default.yml!");
             }
         }
+
+        File currentFlatfilePath = new File(flatFileDirectory);
+        currentFlatfilePath.mkdirs();
     }
 
     private void checkForUpdates() {