Skip to content

Commit

Permalink
Fix IO exceptions when creating default files (#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
kacperduras authored and TheMolkaPL committed Jun 13, 2017
1 parent a6ec579 commit 7a4d9a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/net/dzikoysk/funnyguilds/FunnyGuilds.java
Expand Up @@ -39,6 +39,11 @@ public FunnyGuilds() {

@Override
public void onLoad() {

if (!this.getDataFolder().exists()) {
this.getDataFolder().mkdir();
}

thread = Thread.currentThread();

new Reloader().init();
Expand Down

0 comments on commit 7a4d9a0

Please sign in to comment.