diff --git a/gradle.properties b/gradle.properties index 036521a..3ae339b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1 @@ -pluginVersion=1.5.3 +pluginVersion=1.5.4 diff --git a/src/main/java/io/th0rgal/protectionlib/ProtectionLib.java b/src/main/java/io/th0rgal/protectionlib/ProtectionLib.java index a0b5255..fb2e615 100644 --- a/src/main/java/io/th0rgal/protectionlib/ProtectionLib.java +++ b/src/main/java/io/th0rgal/protectionlib/ProtectionLib.java @@ -76,7 +76,11 @@ private static void handleCompatibility(String pluginName, JavaPlugin mainPlugin Plugin plugin = Bukkit.getPluginManager().getPlugin(pluginName); if (plugin != null) { if (pluginName.equals("Factions") && !checkFactionsCompat()) return; - compatibilities.add(constructor.create(mainPlugin, plugin)); + try { + compatibilities.add(constructor.create(mainPlugin, plugin)); + } catch (Exception e) { + if (debug) e.printStackTrace(); + } } }