Skip to content

Commit

Permalink
fix: try-catch handleCompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy0000 committed May 8, 2024
1 parent 755aa8e commit de89174
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/io/th0rgal/protectionlib/ProtectionLib.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
}

Expand Down

0 comments on commit de89174

Please sign in to comment.