Allow show to be ran from console even if we can't fill in all placeholders

This commit is contained in:
Trent Hensler 2018-03-11 18:31:06 -07:00
parent f85d2a0a17
commit 999067a430

View File

@ -88,9 +88,11 @@ public class CmdShow extends FCommand {
continue; // Due to minimal f show. continue; // Due to minimal f show.
} }
if (fme != null) {
parsed = TagUtil.parsePlaceholders(fme.getPlayer(), parsed); parsed = TagUtil.parsePlaceholders(fme.getPlayer(), parsed);
}
if (TagUtil.hasFancy(parsed)) { if (fme != null && TagUtil.hasFancy(parsed)) {
List<FancyMessage> fancy = TagUtil.parseFancy(faction, fme, parsed); List<FancyMessage> fancy = TagUtil.parseFancy(faction, fme, parsed);
if (fancy != null) { if (fancy != null) {
sendFancyMessage(fancy); sendFancyMessage(fancy);