From 9894e45516ed521245aa2a2e52f66a3bf24ffedc Mon Sep 17 00:00:00 2001 From: Luck Date: Mon, 24 Oct 2016 15:57:05 +0100 Subject: [PATCH] Fix issue with Vault lookups not being preprocessed --- .../main/java/me/lucko/luckperms/api/context/ContextSet.java | 5 +++++ .../main/java/me/lucko/luckperms/bukkit/vault/VaultHook.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/api/src/main/java/me/lucko/luckperms/api/context/ContextSet.java b/api/src/main/java/me/lucko/luckperms/api/context/ContextSet.java index 184d1014..8e84bf80 100644 --- a/api/src/main/java/me/lucko/luckperms/api/context/ContextSet.java +++ b/api/src/main/java/me/lucko/luckperms/api/context/ContextSet.java @@ -303,4 +303,9 @@ public class ContextSet { public int hashCode() { return 59 + (this.contexts == null ? 43 : this.contexts.hashCode()); } + + @Override + public String toString() { + return "ContextSet(contexts=" + this.contexts + ")"; + } } diff --git a/bukkit/src/main/java/me/lucko/luckperms/bukkit/vault/VaultHook.java b/bukkit/src/main/java/me/lucko/luckperms/bukkit/vault/VaultHook.java index 59b65aa7..64c264df 100644 --- a/bukkit/src/main/java/me/lucko/luckperms/bukkit/vault/VaultHook.java +++ b/bukkit/src/main/java/me/lucko/luckperms/bukkit/vault/VaultHook.java @@ -42,7 +42,7 @@ public class VaultHook { permissionHook.setPlugin(plugin); permissionHook.setServer(plugin.getConfiguration().getVaultServer()); permissionHook.setIncludeGlobal(plugin.getConfiguration().isVaultIncludingGlobal()); - permissionHook.setIncludeGlobal(plugin.getConfiguration().isVaultIgnoreWorld()); + permissionHook.setIgnoreWorld(plugin.getConfiguration().isVaultIgnoreWorld()); permissionHook.setup(); if (chatHook == null) {