mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-27 21:29:47 +01:00
don't clear proxiedplayer permission map
This commit is contained in:
parent
d4c335e33e
commit
ebbc0511bf
@ -16,12 +16,8 @@ public class BungeeUserManager extends UserManager {
|
|||||||
@Override
|
@Override
|
||||||
public void unloadUser(User user) {
|
public void unloadUser(User user) {
|
||||||
if (user != null) {
|
if (user != null) {
|
||||||
|
// Cannot clear the ProxiedPlayer's permission map, they're leaving so that will get GCed anyway
|
||||||
ProxiedPlayer player = plugin.getProxy().getPlayer(user.getUuid());
|
// Calling getPermissions.clear() throws an UnsupportedOperationException
|
||||||
if (player != null) {
|
|
||||||
player.getPermissions().clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
getUsers().remove(user.getUuid());
|
getUsers().remove(user.getUuid());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user