From 7083d55a9b3e9750b250b1d9207ce2681e627b72 Mon Sep 17 00:00:00 2001 From: Luck Date: Sun, 2 Jul 2017 10:49:07 +0100 Subject: [PATCH] Fix vault lookups with a specified world --- .../lucko/luckperms/bukkit/vault/VaultPermissionHook.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bukkit/src/main/java/me/lucko/luckperms/bukkit/vault/VaultPermissionHook.java b/bukkit/src/main/java/me/lucko/luckperms/bukkit/vault/VaultPermissionHook.java index d97f3851..5885db1b 100644 --- a/bukkit/src/main/java/me/lucko/luckperms/bukkit/vault/VaultPermissionHook.java +++ b/bukkit/src/main/java/me/lucko/luckperms/bukkit/vault/VaultPermissionHook.java @@ -151,7 +151,7 @@ public class VaultPermissionHook extends Permission { public Contexts createContextForWorldSet(String world) { MutableContextSet context = MutableContextSet.create(); if (world != null && !world.equals("") && !world.equalsIgnoreCase("global")) { - context.add("world", world); + context.add("world", world.toLowerCase()); } context.add("server", getServer()); return new Contexts(context, isIncludeGlobal(), true, true, true, true, false); @@ -160,7 +160,7 @@ public class VaultPermissionHook extends Permission { public Contexts createContextForWorldLookup(String world) { MutableContextSet context = MutableContextSet.create(); if (world != null && !world.equals("") && !world.equalsIgnoreCase("global")) { - context.add("world", world); + context.add("world", world.toLowerCase()); } context.add("server", getServer()); context.addAll(plugin.getConfiguration().getContextsFile().getStaticContexts()); @@ -185,7 +185,7 @@ public class VaultPermissionHook extends Permission { // add the vault settings if (world != null && !world.equals("") && !world.equalsIgnoreCase("global")) { - context.add("world", world); + context.add("world", world.toLowerCase()); } context.add("server", getServer());