mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-26 18:33:04 +00:00
Fix NPE with LPPermissibles & refreshing users
This commit is contained in:
3 files changed
+24
-12
No files matched your search
@@ -46,9 +46,9 @@ public class BukkitUserManager extends UserManager implements ContextListener<Pl
|
||||
BukkitUser u = (BukkitUser) user;
|
||||
Player player = plugin.getServer().getPlayer(plugin.getUuidCache().getExternalUUID(u.getUuid()));
|
||||
if (player != null) {
|
||||
if (u.getLpPermissible() != null) {
|
||||
Injector.unInject(player); // TODO is this needed?
|
||||
u.setLpPermissible(null);
|
||||
if (u.getPermissible() != null) {
|
||||
Injector.unInject(player);
|
||||
u.setPermissible(null);
|
||||
}
|
||||
|
||||
if (plugin.getConfiguration().isAutoOp()) {
|
||||
|
||||
Reference in new issue
Block a user