From 3b34eaf9cb8dcf4d4d0c2eb94844f6cefeed9c96 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Fri, 5 May 2023 11:13:19 +0700 Subject: [PATCH] f --- .../chipmunk/chipmunkmod/modules/CustomChat.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/land/chipmunk/chipmunkmod/modules/CustomChat.java b/src/main/java/land/chipmunk/chipmunkmod/modules/CustomChat.java index 1862d42..661d6c5 100644 --- a/src/main/java/land/chipmunk/chipmunkmod/modules/CustomChat.java +++ b/src/main/java/land/chipmunk/chipmunkmod/modules/CustomChat.java @@ -44,18 +44,18 @@ public class CustomChat { .replace("\"", "\\\""); try { - final MutablePlayerListEntry entry = Players.INSTANCE.getEntry(client.getNetworkHandler().getProfile().getId()); +// final MutablePlayerListEntry entry = Players.INSTANCE.getEntry(client.getNetworkHandler().getProfile().getId()); +// +// final Component displayNameComponent = entry.displayName().asComponent(); - final Component displayNameComponent = entry.displayName().asComponent(); - - final String prefix = GsonComponentSerializer.gson().serialize(Component.join(JoinConfiguration.separator(Component.empty()), displayNameComponent.children().get(0))); - final String displayName = GsonComponentSerializer.gson().serialize(Component.join(JoinConfiguration.separator(Component.empty()), displayNameComponent.children().get(1))); +// final String prefix = GsonComponentSerializer.gson().serialize(Component.join(JoinConfiguration.separator(Component.empty()), displayNameComponent.children().get(0))); +// final String displayName = GsonComponentSerializer.gson().serialize(Component.join(JoinConfiguration.separator(Component.empty()), displayNameComponent.children().get(1))); String sanitizedFormat; try { sanitizedFormat = format - .replace("\"PREFIX\"", prefix) - .replace("\"DISPLAYNAME\"", displayName) +// .replace("\"PREFIX\"", prefix) +// .replace("\"DISPLAYNAME\"", displayName) .replace("USERNAME", username) .replace("MESSAGE", sanitizedMessage); } catch (Exception e) {