diff --git a/src/main/java/com/artillexstudios/axminions/config/Minions.java b/src/main/java/com/artillexstudios/axminions/config/Minions.java index 5f180f8..61fc861 100644 --- a/src/main/java/com/artillexstudios/axminions/config/Minions.java +++ b/src/main/java/com/artillexstudios/axminions/config/Minions.java @@ -38,7 +38,9 @@ public final class Minions { } this.failedToLoad.clear(); - com.artillexstudios.axminions.utils.FileUtils.copyFromResource("minions"); + if (this.minionsDirectory.mkdir()) { + com.artillexstudios.axminions.utils.FileUtils.copyFromResource("minions"); + } Collection files = FileUtils.listFiles(this.minionsDirectory, new String[]{"yaml", "yml"}, true); LogUtils.debug("Parsing minion configs {}", String.join(", ", files.stream().map(File::getName).toList()));