From 0265e09303429adb193b654145847f3a1752c6cc Mon Sep 17 00:00:00 2001 From: PikaMug <2267126+PikaMug@users.noreply.github.com> Date: Tue, 5 May 2020 00:05:24 -0400 Subject: [PATCH] Process placeholders for lore descriptions in NPC GUI, fixes #1281 --- main/src/main/java/me/blackvein/quests/Quester.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/src/main/java/me/blackvein/quests/Quester.java b/main/src/main/java/me/blackvein/quests/Quester.java index 91de44f81..84cdc32be 100644 --- a/main/src/main/java/me/blackvein/quests/Quester.java +++ b/main/src/main/java/me/blackvein/quests/Quester.java @@ -3586,6 +3586,9 @@ public class Quester { if (!meta.hasLore()) { LinkedList lines = new LinkedList(); String desc = quest.description; + if (plugin.getDependencies().getPlaceholderApi() != null) { + desc = PlaceholderAPI.setPlaceholders(player, desc); + } if (desc.equals(ChatColor.stripColor(desc))) { lines = MiscUtil.makeLines(desc, " ", 40, ChatColor.DARK_GREEN); } else {