diff --git a/build.gradle.kts b/build.gradle.kts index f053e4a0..20e26989 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -72,7 +72,8 @@ tasks { } jar { - enabled = false // Shadow produces our jar files + archiveClassifier.set("original") + //enabled = false // Shadow produces our jar files } withType().configureEach { options.encoding = "UTF-8" diff --git a/src/main/java/com/dre/brewery/api/addons/AddonManager.java b/src/main/java/com/dre/brewery/api/addons/AddonManager.java index 778a4eb0..cf98407a 100644 --- a/src/main/java/com/dre/brewery/api/addons/AddonManager.java +++ b/src/main/java/com/dre/brewery/api/addons/AddonManager.java @@ -103,7 +103,7 @@ public void loadAddons() { addon.getAddonLogger().info("Loading &a" + addon.getAddonInfo().name() + " &f-&a v" + addon.getAddonInfo().version() + " &fby &a" + addon.getAddonInfo().author()); addons.add(addon); // Add to our list of addons - addon.onAddonEnable(); + //addon.onAddonEnable(); } catch (Exception e) { plugin.getLogger().log(Level.SEVERE,"Failed to load addon class " + clazz.getSimpleName(), e); } @@ -113,6 +113,9 @@ public void loadAddons() { } } + for (BreweryAddon addon : addons) { + addon.onAddonEnable(); + } int loaded = addons.size(); if (loaded > 0) plugin.log("Loaded " + loaded + " addon(s)"); }