Nullcheck name for offline player support
This commit is contained in:
parent
1736f34fc8
commit
d93a0b16cc
@ -300,6 +300,9 @@ public class FPlayer extends PlayerEntity implements EconomyParticipator {
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
if (getPlayer() == null) {
|
||||
return getId();
|
||||
}
|
||||
return getPlayer().getName();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user