From 8aaad8647faef86b06b8769e8993946c5e86da77 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Thu, 21 Jul 2022 12:12:36 +0200 Subject: [PATCH] Fix Command19 Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/util/Chat19.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/util/Chat19.java b/src/de/steamwar/bungeecore/util/Chat19.java index ab4e792..9403a2a 100644 --- a/src/de/steamwar/bungeecore/util/Chat19.java +++ b/src/de/steamwar/bungeecore/util/Chat19.java @@ -31,10 +31,11 @@ public class Chat19 extends Chat { public static void chat(ProxiedPlayer p, String message) { if(p.getPendingConnection().getVersion() >= 759) { + boolean command = message.startsWith("/"); Chat19 packet = new Chat19(message); ByteBuf buf = Unpooled.buffer(); - writeVarInt(0x04, buf); + writeVarInt(command ? 0x03 : 0x04, buf); packet.write(buf, ProtocolConstants.Direction.TO_SERVER, p.getPendingConnection().getVersion()); ((ServerConnection) p.getServer()).getCh().write(new PacketWrapper(packet, buf)); } else {