20 lines
401 B
Go
20 lines
401 B
Go
package server
|
|
|
|
import "git.konjactw.dev/falloutBot/go-mc/data/packetid"
|
|
|
|
//codec:gen
|
|
type LoginKey struct {
|
|
SharedSecret []byte `mc:"ByteArray"`
|
|
VerifyToken []byte `mc:"ByteArray"`
|
|
}
|
|
|
|
func (*LoginKey) PacketID() packetid.ServerboundPacketID {
|
|
return packetid.ServerboundLoginKey
|
|
}
|
|
|
|
func init() {
|
|
registerPacket(packetid.ServerboundLoginKey, func() ServerboundPacket {
|
|
return &LoginKey{}
|
|
})
|
|
}
|