Skip to content

Commit

Permalink
Added warning when registering hook and it fails to do so
Browse files Browse the repository at this point in the history
  • Loading branch information
OmerBenGera committed Jun 3, 2022
1 parent 7991a43 commit ff56daf
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -563,7 +563,9 @@ private void registerHook(String className) {
Class<?> clazz = Class.forName("com.bgsoftware.superiorskyblock.hooks.support." + className);
Method registerMethod = clazz.getMethod("register", SuperiorSkyblockPlugin.class);
registerMethod.invoke(null, plugin);
} catch (Exception ignored) {
} catch (Throwable error) {
SuperiorSkyblockPlugin.log("&cAn error occurred while registering " + className + ":");
error.printStackTrace();
}
}

Expand Down

0 comments on commit ff56daf

Please sign in to comment.