From 9d780ae24a29814e9645b2f60d6389131bede0fc Mon Sep 17 00:00:00 2001 From: Luck Date: Mon, 15 May 2017 21:26:23 +0100 Subject: [PATCH] Fix misleading Vault debug message --- .../java/me/lucko/luckperms/bukkit/LPBukkitPlugin.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bukkit/src/main/java/me/lucko/luckperms/bukkit/LPBukkitPlugin.java b/bukkit/src/main/java/me/lucko/luckperms/bukkit/LPBukkitPlugin.java index 9d746ca3..70e79bff 100644 --- a/bukkit/src/main/java/me/lucko/luckperms/bukkit/LPBukkitPlugin.java +++ b/bukkit/src/main/java/me/lucko/luckperms/bukkit/LPBukkitPlugin.java @@ -433,17 +433,17 @@ public class LPBukkitPlugin extends JavaPlugin implements LuckPermsPlugin { public void tryVaultHook(boolean force) { if (vaultHook != null) { - return; + return; // already hooked } - getLog().info("Attempting to hook with Vault..."); + if (force) { + getLog().info("Attempting to hook with Vault..."); + } try { if (force || getServer().getPluginManager().isPluginEnabled("Vault")) { vaultHook = new VaultHook(); vaultHook.hook(this); getLog().info("Registered Vault permission & chat hook."); - } else { - getLog().info("Vault not found."); } } catch (Exception e) { vaultHook = null;