diff --git a/src/main/kotlin/cc/dsnb/bedrockplayersupport/util/StringUtil.kt b/src/main/kotlin/cc/dsnb/bedrockplayersupport/util/StringUtil.kt index 849f8c3..8963b96 100644 --- a/src/main/kotlin/cc/dsnb/bedrockplayersupport/util/StringUtil.kt +++ b/src/main/kotlin/cc/dsnb/bedrockplayersupport/util/StringUtil.kt @@ -36,7 +36,11 @@ object StringUtil { fun formatTextToComponent(player: Player?, originalText: String): Component { return BedrockPlayerSupport.miniMessage.deserialize( - formatTextToString(player, originalText) + if (BedrockPlayerSupport.mainConfigManager.getConfigData().enableSupportPAPI()) { + PlaceholderAPI.setPlaceholders(player, originalText) + } else { + originalText + } ) }