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 {