Nullcheck name for offline player support

This commit is contained in:
gravitylow 2014-04-16 13:07:14 -04:00
parent 1736f34fc8
commit d93a0b16cc

View File

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