Fix misleading Vault debug message
This commit is contained in:
parent
a44dec0402
commit
9d780ae24a
@ -433,17 +433,17 @@ public class LPBukkitPlugin extends JavaPlugin implements LuckPermsPlugin {
|
|||||||
|
|
||||||
public void tryVaultHook(boolean force) {
|
public void tryVaultHook(boolean force) {
|
||||||
if (vaultHook != null) {
|
if (vaultHook != null) {
|
||||||
return;
|
return; // already hooked
|
||||||
}
|
}
|
||||||
|
|
||||||
getLog().info("Attempting to hook with Vault...");
|
if (force) {
|
||||||
|
getLog().info("Attempting to hook with Vault...");
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
if (force || getServer().getPluginManager().isPluginEnabled("Vault")) {
|
if (force || getServer().getPluginManager().isPluginEnabled("Vault")) {
|
||||||
vaultHook = new VaultHook();
|
vaultHook = new VaultHook();
|
||||||
vaultHook.hook(this);
|
vaultHook.hook(this);
|
||||||
getLog().info("Registered Vault permission & chat hook.");
|
getLog().info("Registered Vault permission & chat hook.");
|
||||||
} else {
|
|
||||||
getLog().info("Vault not found.");
|
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
vaultHook = null;
|
vaultHook = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user