mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 11:38:40 +01:00
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) {
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user