mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-26 02:58:00 +01:00
Process placeholders for lore descriptions in NPC GUI, fixes #1281
This commit is contained in:
parent
02171d54dd
commit
0265e09303
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user