don't clear proxiedplayer permission map

This commit is contained in:
Luck 2016-06-28 17:28:08 +01:00
parent d4c335e33e
commit ebbc0511bf

View File

@ -16,12 +16,8 @@ public class BungeeUserManager extends UserManager {
@Override
public void unloadUser(User user) {
if (user != null) {
ProxiedPlayer player = plugin.getProxy().getPlayer(user.getUuid());
if (player != null) {
player.getPermissions().clear();
}
// Cannot clear the ProxiedPlayer's permission map, they're leaving so that will get GCed anyway
// Calling getPermissions.clear() throws an UnsupportedOperationException
getUsers().remove(user.getUuid());
}
}