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) {