diff --git a/src/main/java/com/Acrobot/ChestShop/ChestShop.java b/src/main/java/com/Acrobot/ChestShop/ChestShop.java index 1e1ca45..0854a74 100644 --- a/src/main/java/com/Acrobot/ChestShop/ChestShop.java +++ b/src/main/java/com/Acrobot/ChestShop/ChestShop.java @@ -126,7 +126,10 @@ public class ChestShop extends JavaPlugin { private static File loadFile(File file) { if (!file.exists()) { try { - file.getParentFile().mkdirs(); + if (file.getParent() != null) { + file.getParentFile().mkdirs(); + } + file.createNewFile(); } catch (IOException e) { e.printStackTrace();