mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-12-01 07:03:43 +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)
|
@EventHandler(priority = EventPriority.LOW)
|
||||||
public void onPlayerJoin(PlayerLoginEvent e) {
|
public void onPlayerJoin(PlayerLoginEvent e) {
|
||||||
|
UUID internal = plugin.getUuidCache().getUUID(e.getPlayer().getUniqueId());
|
||||||
|
worldCache.put(internal, e.getPlayer().getWorld().getName());
|
||||||
pushUpdate(
|
pushUpdate(
|
||||||
e.getPlayer(),
|
e.getPlayer(),
|
||||||
Maps.immutableEntry(WORLD_KEY, null),
|
Maps.immutableEntry(WORLD_KEY, null),
|
||||||
|
Loading…
Reference in New Issue
Block a user