mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-28 05:35:26 +01:00
Fix per-world permissions not working until a user switches worlds
This commit is contained in:
parent
0e7d9bf9c1
commit
a4c872f1e8
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user