소스 검색

Ensure the FlatFile directory exists.

Fixes #1842
Sean Porter 11 년 전
부모
커밋
d63c3fc6d0
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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() {