From 92213f20c1eec792f390f4ac4e9c2a9120506184 Mon Sep 17 00:00:00 2001 From: Tastybento Date: Thu, 28 Dec 2017 11:32:57 -0800 Subject: [PATCH] Addon data folder name change. --- .../java/us/tastybento/bskyblock/managers/AddonsManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/us/tastybento/bskyblock/managers/AddonsManager.java b/src/main/java/us/tastybento/bskyblock/managers/AddonsManager.java index 6d8202897..cbac2e6fe 100644 --- a/src/main/java/us/tastybento/bskyblock/managers/AddonsManager.java +++ b/src/main/java/us/tastybento/bskyblock/managers/AddonsManager.java @@ -108,7 +108,7 @@ public final class AddonsManager { loader = new AddonClassLoader(data, f, reader, this.getClass().getClassLoader()); this.loader.add(loader); addon = loader.addon; - addon.setDataFolder(new File(f.getParent(), f.getName().replace(".jar", ""))); + addon.setDataFolder(new File(f.getParent(), addon.getDescription().getName())); addon.setAddonFile(f); Bukkit.getPluginManager().callEvent(AddonEvent.builder().addon(addon).reason(AddonEvent.Reason.LOAD).build()); this.addons.add(addon);