Nullcheck name for offline player support

This commit is contained in:
gravitylow 2014-04-16 13:07:14 -04:00
parent 1736f34fc8
commit d93a0b16cc
1 changed files with 3 additions and 0 deletions

View File

@ -300,6 +300,9 @@ public class FPlayer extends PlayerEntity implements EconomyParticipator {
}
public String getName() {
if (getPlayer() == null) {
return getId();
}
return getPlayer().getName();
}