Skip to content

Commit

Permalink
fix: providers folder won't create
Browse files Browse the repository at this point in the history
  • Loading branch information
HappyAreaBean committed Apr 7, 2023
1 parent 3d29017 commit 7e4663d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ public void setProvider(ArenaProvider provider) {

private boolean loadArenaProviders(JavaPlugin plugin, String folder) {
File modulesFolder = new File(plugin.getDataFolder(), folder);
if (!modulesFolder.exists() || !modulesFolder.isDirectory()) {
if (!modulesFolder.exists()) {
modulesFolder.mkdir();
}

if (!modulesFolder.isDirectory()) {
return false;
}

Expand Down

0 comments on commit 7e4663d

Please sign in to comment.