mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-27 12:46:09 +01:00
Offline player name hotfix until I can write a good threaded use of OfflinePlayer
This commit is contained in:
parent
402b3b0d07
commit
e2f5548a5f
@ -305,8 +305,9 @@ public class FPlayer extends PlayerEntity implements EconomyParticipator {
|
||||
if(getPlayer() != null) {
|
||||
return getPlayer().getName();
|
||||
}
|
||||
OfflinePlayer player = Bukkit.getOfflinePlayer(UUID.fromString(getId()));
|
||||
return player.getName() != null ? player.getName() : getId();
|
||||
/*OfflinePlayer player = Bukkit.getOfflinePlayer(UUID.fromString(getId()));
|
||||
return player.getName() != null ? player.getName() : getId();*/
|
||||
return getId();
|
||||
}
|
||||
|
||||
public String getTag() {
|
||||
|
Loading…
Reference in New Issue
Block a user