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