From 999067a430f8dcae0167ec8b85d1f0373abad4de Mon Sep 17 00:00:00 2001 From: Trent Hensler Date: Sun, 11 Mar 2018 18:31:06 -0700 Subject: [PATCH] Allow show to be ran from console even if we can't fill in all placeholders --- src/main/java/com/massivecraft/factions/cmd/CmdShow.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/massivecraft/factions/cmd/CmdShow.java b/src/main/java/com/massivecraft/factions/cmd/CmdShow.java index ce32576e..2e59332b 100644 --- a/src/main/java/com/massivecraft/factions/cmd/CmdShow.java +++ b/src/main/java/com/massivecraft/factions/cmd/CmdShow.java @@ -88,9 +88,11 @@ public class CmdShow extends FCommand { continue; // Due to minimal f show. } - parsed = TagUtil.parsePlaceholders(fme.getPlayer(), parsed); + if (fme != null) { + parsed = TagUtil.parsePlaceholders(fme.getPlayer(), parsed); + } - if (TagUtil.hasFancy(parsed)) { + if (fme != null && TagUtil.hasFancy(parsed)) { List fancy = TagUtil.parseFancy(faction, fme, parsed); if (fancy != null) { sendFancyMessage(fancy);