From 9d73339e14a437b2f8c8cbb6dfd47e2107512bfb Mon Sep 17 00:00:00 2001 From: drtshock Date: Wed, 16 Apr 2014 12:12:18 -0500 Subject: [PATCH] Ternary --- src/main/java/com/massivecraft/factions/FPlayer.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/com/massivecraft/factions/FPlayer.java b/src/main/java/com/massivecraft/factions/FPlayer.java index d298e65a..54068b81 100644 --- a/src/main/java/com/massivecraft/factions/FPlayer.java +++ b/src/main/java/com/massivecraft/factions/FPlayer.java @@ -300,10 +300,7 @@ public class FPlayer extends PlayerEntity implements EconomyParticipator { } public String getName() { - if (getPlayer() == null) { - return getId(); - } - return getPlayer().getName(); + return getPlayer() != null ? getPlayer().getName() : getId(); } public String getTag() {