Skip to content

Commit

Permalink
Make folders automatically for the YAML command
Browse files Browse the repository at this point in the history
Yay, folders are useful
  • Loading branch information
mcmonkey4eva committed Nov 5, 2014
1 parent 76ace77 commit 527b381
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -252,6 +252,9 @@ public void execute(final ScriptEntry scriptEntry) throws CommandExecutionExcept
return;
}
}
File fileObj = new File(DenizenAPI.getCurrentInstance().
getDataFolder().getAbsolutePath() + "/" + filename.asString());
fileObj.mkdirs();
FileWriter fw = new FileWriter(DenizenAPI.getCurrentInstance()
.getDataFolder().getAbsolutePath() + "/" + filename.asString());
BufferedWriter writer = new BufferedWriter(fw);
Expand Down

0 comments on commit 527b381

Please sign in to comment.