Offline player name hotfix until I can write a good threaded use of OfflinePlayer

This commit is contained in:
gravitylow 2014-04-16 13:55:22 -04:00
parent 402b3b0d07
commit e2f5548a5f

View File

@ -305,8 +305,9 @@ public class FPlayer extends PlayerEntity implements EconomyParticipator {
if(getPlayer() != null) { if(getPlayer() != null) {
return getPlayer().getName(); return getPlayer().getName();
} }
OfflinePlayer player = Bukkit.getOfflinePlayer(UUID.fromString(getId())); /*OfflinePlayer player = Bukkit.getOfflinePlayer(UUID.fromString(getId()));
return player.getName() != null ? player.getName() : getId(); return player.getName() != null ? player.getName() : getId();*/
return getId();
} }
public String getTag() { public String getTag() {