From cbf18ff720d16c5b1a6605adc7b686dde2d15eaa Mon Sep 17 00:00:00 2001 From: Andreas Troelsen Date: Sat, 23 Jun 2018 00:00:12 +0200 Subject: [PATCH] Guard against non-existent plugin folder. If there isn't already a MobArena folder in the plugins folder, this line fails if we don't make sure to recurse on the folder creation. --- src/main/java/com/garbagemule/MobArena/MobArena.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/garbagemule/MobArena/MobArena.java b/src/main/java/com/garbagemule/MobArena/MobArena.java index c083670..d34d47b 100644 --- a/src/main/java/com/garbagemule/MobArena/MobArena.java +++ b/src/main/java/com/garbagemule/MobArena/MobArena.java @@ -145,7 +145,7 @@ public class MobArena extends JavaPlugin // Make sure the data folder exists File data = new File(getDataFolder(), "data"); if (!data.exists()) { - boolean created = data.mkdir(); + boolean created = data.mkdirs(); if (!created) { throw new IllegalStateException("Failed to create data folder!"); }