From 9a6465e6a45784b51a82daf64f3024900158f10c Mon Sep 17 00:00:00 2001 From: BuildTools Date: Wed, 28 Nov 2018 00:47:19 -0500 Subject: [PATCH] Output directory permission for #481 and #534 --- src/main/java/me/blackvein/quests/Quests.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/blackvein/quests/Quests.java b/src/main/java/me/blackvein/quests/Quests.java index fc97ca0ca..8dbf376cf 100644 --- a/src/main/java/me/blackvein/quests/Quests.java +++ b/src/main/java/me/blackvein/quests/Quests.java @@ -267,7 +267,9 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener File outDir = new File(outFile.getPath().replace(outFile.getName(), "")); if (!outDir.exists()) { - outDir.mkdirs(); + if (!outDir.mkdirs()) { + getLogger().log(Level.SEVERE, "Failed to make directories for " + outFile.getName() + "(canWrite= " + outFile.canWrite()); + } } try {