Process placeholders for lore descriptions in NPC GUI, fixes #1281

This commit is contained in:
PikaMug 2020-05-05 00:05:24 -04:00
parent 02171d54dd
commit 0265e09303

View File

@ -3586,6 +3586,9 @@ public class Quester {
if (!meta.hasLore()) {
LinkedList<String> lines = new LinkedList<String>();
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 {