mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 11:38:40 +01:00
Fix login NPE when async tasks run after the event has been fully handled
This commit is contained in:
parent
d93cc826b2
commit
7d1a3d32e9
@ -136,7 +136,7 @@ class BukkitListener extends AbstractListener implements Listener {
|
||||
}
|
||||
|
||||
// The player got denied on sync login.
|
||||
onLeave(e.getPlayer().getUniqueId());
|
||||
plugin.getServer().getScheduler().runTaskLater(plugin, () -> onLeave(e.getPlayer().getUniqueId()), 20L);
|
||||
} else {
|
||||
plugin.refreshAutoOp(e.getPlayer());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user