Fix per-world permissions not working until a user switches worlds

This commit is contained in:
Luck 2016-10-17 17:10:02 +01:00
parent 0e7d9bf9c1
commit a4c872f1e8
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -80,6 +80,8 @@ public class WorldCalculator extends ContextCalculator<Player> 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),