diff --git a/src/main/java/me/totalfreedom/plex/rank/RankManager.java b/src/main/java/me/totalfreedom/plex/rank/RankManager.java index a980d2a..4388b48 100644 --- a/src/main/java/me/totalfreedom/plex/rank/RankManager.java +++ b/src/main/java/me/totalfreedom/plex/rank/RankManager.java @@ -21,7 +21,13 @@ public class RankManager public RankManager() { - defaultRanks = new File(new File(Plex.get().getDataFolder() + File.separator + "ranks"), "default-ranks.json"); + File ranksFolder = new File(Plex.get().getDataFolder() + File.separator + "ranks"); + if (!ranksFolder.exists()) + { + ranksFolder.mkdir(); + } + + defaultRanks = new File(ranksFolder, "default-ranks.json"); } public void generateDefaultRanks()