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 3096b54
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pluginVersion=1.5.3
pluginVersion=1.5.4
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 3096b54

Please sign in to comment.