diff --git a/src/main/java/pw/yumc/YumCore/statistic/Statistics.java b/src/main/java/pw/yumc/YumCore/statistic/Statistics.java index e1f92d7..dac463f 100644 --- a/src/main/java/pw/yumc/YumCore/statistic/Statistics.java +++ b/src/main/java/pw/yumc/YumCore/statistic/Statistics.java @@ -115,6 +115,7 @@ public class Statistics { public Statistics() { try { if (!configfile.exists()) { + configfile.getParentFile().mkdirs(); configfile.createNewFile(); } config = YamlConfiguration.loadConfiguration(configfile);