mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-03-02 11:12:28 +01:00
Log error if hook is unsuccessful
This commit is contained in:
parent
b67dbf0cb9
commit
3f4bd2418f
@ -31,7 +31,7 @@ public class HooksManager {
|
||||
if (hook.hook()) {
|
||||
hooks.add(hook);
|
||||
} else {
|
||||
plugin.log("Could not hook with " + hook.getPluginName() + ((hook.getFailureCause() != null) ? " because: " + hook.getFailureCause() : "") + ". Skipping...");
|
||||
plugin.logError("Could not hook with " + hook.getPluginName() + ((hook.getFailureCause() != null) ? " because: " + hook.getFailureCause() : "") + ". Skipping...");
|
||||
}
|
||||
}
|
||||
// Do not tell the user if we couldn't hook with a plugin which is not available.
|
||||
|
Loading…
Reference in New Issue
Block a user