Fix for missing userCache

This commit is contained in:
Fabrizio La Rosa 2020-07-20 23:51:51 +02:00
parent bc4af8972b
commit 5c9c427517

View File

@ -58,8 +58,12 @@ public class OfflinePlayer {
this.name = bukkitOfflinePlayer.getName();
this.uuid = uuid;
if (this.name == null && userCacheManager.hasUser(uuid)) {
this.name = userCacheManager.getUser(uuid);
if (this.name == null) {
if(userCacheManager.hasUser(uuid)) {
this.name = userCacheManager.getUser(uuid);
} else {
this.name = "Unknown";
}
}
FileConfiguration configLoad = YamlConfiguration.loadConfiguration(