public void unhook() {
        ServicesManager servicesManager = this.plugin.getBootstrap().getServer().getServicesManager();

        if (this.permission != null) {
            servicesManager.unregister(Permission.class, this.permission);
            this.permission = null;
        }

        if (this.chat != null) {
            servicesManager.unregister(Chat.class, this.chat);
            this.chat = null;
        }
    }
Unregisters the LuckPerms Vault hooks, if present.
bukkit/src/main/java/me/lucko/luckperms/bukkit/vault/VaultHookManager.java