Fix permissions not being removed on Sponge

This commit is contained in:
Luck
2016-09-04 17:59:01 +01:00
Unverified
parent ed85eee36c
commit 770b7dc282
10 changed files with 84 additions and 117 deletions
@@ -34,15 +34,6 @@ public class BungeeUserManager extends UserManager {
this.plugin = plugin;
}
@Override
public void unload(User user) {
if (user != null) {
// Cannot clear the ProxiedPlayer's permission map, they're leaving so that will get GCed anyway
// Calling getPermissions.clear() throws an UnsupportedOperationException
getAll().remove(user.getUuid());
}
}
@Override
public void cleanup(User user) {
if (plugin.getProxy().getPlayer(plugin.getUuidCache().getExternalUUID(user.getUuid())) == null) {