mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-27 01:40:48 +08:00
Always populate last known name into cache
In theory this should never be an issue but somehow is?
This commit is contained in:
parent
7f3b62a180
commit
02ced188c8
@ -167,18 +167,13 @@ public class ModernUserMap extends CacheLoader<UUID, User> implements IUserMap {
|
||||
player = new OfflinePlayerStub(uuid, ess.getServer());
|
||||
user = new User(player, ess);
|
||||
((OfflinePlayerStub) player).setName(user.getLastAccountName());
|
||||
uuidCache.updateCache(uuid, null);
|
||||
uuidCache.updateCache(uuid, user.getLastAccountName());
|
||||
return user;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public void addCachedUser(final User user) {
|
||||
userCache.put(user.getUUID(), user);
|
||||
debugLogCache(user);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, UUID> getNameCache() {
|
||||
return uuidCache.getNameCache();
|
||||
|
Loading…
Reference in New Issue
Block a user