From 8e6d002135b91567895f1b641957d7587501aac6 Mon Sep 17 00:00:00 2001 From: Apehum Date: Mon, 4 May 2026 16:59:43 +0800 Subject: [PATCH] fix: use formatRelationalComponent in PlayerTabList#updateRelationalDisplayName --- src/main/java/net/william278/velocitab/tab/PlayerTabList.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/william278/velocitab/tab/PlayerTabList.java b/src/main/java/net/william278/velocitab/tab/PlayerTabList.java index 503e57b..2348ef2 100644 --- a/src/main/java/net/william278/velocitab/tab/PlayerTabList.java +++ b/src/main/java/net/william278/velocitab/tab/PlayerTabList.java @@ -596,7 +596,7 @@ private void updateRelationalDisplayName(@NotNull TabPlayer tabPlayer, @NotNull final String withPlaceholders = plugin.getPlaceholderManager().applyViewerPlaceholders(viewer, formatConditionalPlaceholders); final String unformatted = plugin.getPlaceholderManager().formatVelocitabPlaceholders(withPlaceholders, tabPlayer, viewer); - final Component displayNameComponent = formatComponent(tabPlayer, unformatted); + final Component displayNameComponent = formatRelationalComponent(tabPlayer, viewer, unformatted); updateEntryDisplayName(tabPlayer, viewer, displayNameComponent); }); }