Files
minego/pkg/protocol/packet/game/server/chat_command_signed.go
2025-08-27 20:28:44 +08:00

34 lines
787 B
Go

package server
import (
"git.konjactw.dev/falloutBot/go-mc/data/packetid"
pk "git.konjactw.dev/falloutBot/go-mc/net/packet"
)
//codec:gen
type SignedSignatures struct {
ArgumentName string
Signature []byte `mc:"ByteArray"`
}
//codec:gen
type ChatCommandSigned struct {
Command string
Timestamp int64
Salt int64
ArgumentSignatures []SignedSignatures
MessageCount int32 `mc:"VarInt"`
Acknowledged pk.FixedBitSet `mc:"FixedBitSet" size:"20"`
Checksum int8
}
func (*ChatCommandSigned) PacketID() packetid.ServerboundPacketID {
return packetid.ServerboundChatCommandSigned
}
func init() {
registerPacket(packetid.ServerboundChatCommandSigned, func() ServerboundPacket {
return &ChatCommandSigned{}
})
}