From 2cad76a2dba78cded379f99d8cd3069c463f4aa1 Mon Sep 17 00:00:00 2001 From: AkmalFairuz Date: Thu, 11 Dec 2025 00:23:53 +0700 Subject: [PATCH] Add support for CommandRequest in protocol handling --- legacyver/protocol.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/legacyver/protocol.go b/legacyver/protocol.go index 434697d..cf348ca 100644 --- a/legacyver/protocol.go +++ b/legacyver/protocol.go @@ -1407,6 +1407,13 @@ func (p *Protocol) upgradePackets(pks []packet.Packet, conn *minecraft.Conn) []p OutputMessages: pk.OutputMessages, DataSet: pk.DataSet, } + case *legacypacket.CommandRequest: + pks[pkIndex] = &packet.CommandRequest{ + CommandLine: pk.CommandLine, + CommandOrigin: pk.CommandOrigin, + Internal: pk.Internal, + Version: pk.Version, + } case *legacypacket.Event: pks[pkIndex] = &packet.Event{ EntityRuntimeID: pk.EntityRuntimeID,