From a4c872f1e8ef12b7a158795be13423c013454c74 Mon Sep 17 00:00:00 2001 From: Luck Date: Mon, 17 Oct 2016 17:10:02 +0100 Subject: [PATCH] Fix per-world permissions not working until a user switches worlds --- .../main/java/me/lucko/luckperms/bukkit/WorldCalculator.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bukkit/src/main/java/me/lucko/luckperms/bukkit/WorldCalculator.java b/bukkit/src/main/java/me/lucko/luckperms/bukkit/WorldCalculator.java index 4a9baa1c..76f0ce06 100644 --- a/bukkit/src/main/java/me/lucko/luckperms/bukkit/WorldCalculator.java +++ b/bukkit/src/main/java/me/lucko/luckperms/bukkit/WorldCalculator.java @@ -80,6 +80,8 @@ public class WorldCalculator extends ContextCalculator implements Listen @EventHandler(priority = EventPriority.LOW) public void onPlayerJoin(PlayerLoginEvent e) { + UUID internal = plugin.getUuidCache().getUUID(e.getPlayer().getUniqueId()); + worldCache.put(internal, e.getPlayer().getWorld().getName()); pushUpdate( e.getPlayer(), Maps.immutableEntry(WORLD_KEY, null),