Fix misleading Vault debug message

This commit is contained in:
Luck 2017-05-15 21:26:23 +01:00
parent a44dec0402
commit 9d780ae24a
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -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;