mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-07 11:10:04 +01:00
Fix for missing userCache
This commit is contained in:
parent
bc4af8972b
commit
5c9c427517
@ -58,8 +58,12 @@ public class OfflinePlayer {
|
|||||||
this.name = bukkitOfflinePlayer.getName();
|
this.name = bukkitOfflinePlayer.getName();
|
||||||
this.uuid = uuid;
|
this.uuid = uuid;
|
||||||
|
|
||||||
if (this.name == null && userCacheManager.hasUser(uuid)) {
|
if (this.name == null) {
|
||||||
|
if(userCacheManager.hasUser(uuid)) {
|
||||||
this.name = userCacheManager.getUser(uuid);
|
this.name = userCacheManager.getUser(uuid);
|
||||||
|
} else {
|
||||||
|
this.name = "Unknown";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
FileConfiguration configLoad = YamlConfiguration.loadConfiguration(
|
FileConfiguration configLoad = YamlConfiguration.loadConfiguration(
|
||||||
|
Loading…
Reference in New Issue
Block a user