mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2025-01-04 07:28:13 +01:00
Fix NPE in Nukkit disconnect handling (#2269)
This commit is contained in:
parent
9f22bf2fbf
commit
2839c36ea2
@ -188,6 +188,12 @@ public class NukkitConnectionListener extends AbstractConnectionListener impleme
|
||||
@EventHandler(priority = EventPriority.MONITOR)
|
||||
public void onPlayerQuit(PlayerQuitEvent e) {
|
||||
final Player player = e.getPlayer();
|
||||
|
||||
// https://github.com/lucko/LuckPerms/issues/2269
|
||||
if (player.getUniqueId() == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
handleDisconnect(player.getUniqueId());
|
||||
|
||||
// perform unhooking from nukkit objects 1 tick later.
|
||||
|
Loading…
Reference in New Issue
Block a user