Search in sources :

Example 1 with VaultHookManager

use of me.lucko.luckperms.bukkit.vault.VaultHookManager in project LuckPerms by lucko.

the class LPBukkitPlugin method tryVaultHook.

public void tryVaultHook(boolean force) {
    if (this.vaultHookManager != null) {
        // already hooked
        return;
    }
    try {
        if (force || this.bootstrap.getServer().getPluginManager().isPluginEnabled("Vault")) {
            this.vaultHookManager = new VaultHookManager();
            this.vaultHookManager.hook(this);
            getLogger().info("Registered Vault permission & chat hook.");
        }
    } catch (Exception e) {
        this.vaultHookManager = null;
        getLogger().severe("Error occurred whilst hooking into Vault.");
        e.printStackTrace();
    }
}
Also used : VaultHookManager(me.lucko.luckperms.bukkit.vault.VaultHookManager)

Aggregations

VaultHookManager (me.lucko.luckperms.bukkit.vault.VaultHookManager)1