make it create the ranks folder

This commit is contained in:
spacerocket62 2020-10-28 19:36:37 -07:00
parent ebd86d8ec7
commit a770fc36e9

View File

@ -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()