From 0caff79bf8648f5731aeeb3412026cbc40420239 Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Wed, 22 Jun 2022 05:30:27 +0100 Subject: [PATCH] hard over system message chat type for 1.19+ --- .../proxy/protocol/packet/chat/ChatBuilder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/chat/ChatBuilder.java b/proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/chat/ChatBuilder.java index d8732011b..33dff036c 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/chat/ChatBuilder.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/chat/ChatBuilder.java @@ -132,7 +132,8 @@ public class ChatBuilder { Component msg = component == null ? Component.text(message) : component; if (version.compareTo(ProtocolVersion.MINECRAFT_1_19) >= 0) { - return new SystemChat(msg, type.getId()); + // hard override chat > system for now + return new SystemChat(msg, type == ChatType.CHAT ? ChatType.SYSTEM.getId() : type.getId()); } else { return new LegacyChat(ProtocolUtils.getJsonChatSerializer(version).serialize(msg), type.getId(), identity); }