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
1 changed files with 4 additions and 2 deletions

View File

@ -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<FancyMessage> fancy = TagUtil.parseFancy(faction, fme, parsed);
if (fancy != null) {
sendFancyMessage(fancy);