From f90f3a6074105ca11c9ad011bd37a3d9096fa4d3 Mon Sep 17 00:00:00 2001 From: Gabber235 Date: Sun, 21 Jul 2024 15:24:11 +0200 Subject: [PATCH] Allow placeholders in npc indicator --- .../typewriter/entries/entity/custom/InteractionIndicator.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/adapters/EntityAdapter/src/main/kotlin/me/gabber235/typewriter/entries/entity/custom/InteractionIndicator.kt b/adapters/EntityAdapter/src/main/kotlin/me/gabber235/typewriter/entries/entity/custom/InteractionIndicator.kt index ca16eea86f..78da28c6d8 100644 --- a/adapters/EntityAdapter/src/main/kotlin/me/gabber235/typewriter/entries/entity/custom/InteractionIndicator.kt +++ b/adapters/EntityAdapter/src/main/kotlin/me/gabber235/typewriter/entries/entity/custom/InteractionIndicator.kt @@ -14,6 +14,7 @@ import me.gabber235.typewriter.entry.entries.EntityData import me.gabber235.typewriter.entry.entries.EntityDefinitionEntry import me.gabber235.typewriter.entry.entries.LinesProperty import me.gabber235.typewriter.entry.quest.trackedQuest +import me.gabber235.typewriter.extensions.placeholderapi.parsePlaceholders import me.gabber235.typewriter.snippets.snippet import me.gabber235.typewriter.utils.Sound import org.bukkit.entity.Player @@ -60,7 +61,7 @@ class InteractionIndicatorEntity( }.toList() if (objectives.isEmpty()) { if (hasInteractionEntry()) { - return dialogueIndicator + return dialogueIndicator.parsePlaceholders(player) } return "" } @@ -72,7 +73,7 @@ class InteractionIndicatorEntity( interactIndicator } - return icon + return icon.parsePlaceholders(player) } private fun hasInteractionEntry(): Boolean {