22 lines
433 B
Go
22 lines
433 B
Go
package client
|
|
|
|
import (
|
|
"git.konjactw.dev/falloutBot/go-mc/chat"
|
|
"git.konjactw.dev/falloutBot/go-mc/data/packetid"
|
|
)
|
|
|
|
//codec:gen
|
|
type ConfigDisconnect struct {
|
|
Reason chat.Message
|
|
}
|
|
|
|
func (*ConfigDisconnect) PacketID() packetid.ClientboundPacketID {
|
|
return packetid.ClientboundConfigDisconnect
|
|
}
|
|
|
|
func init() {
|
|
registerPacket(packetid.ClientboundConfigDisconnect, func() ClientboundPacket {
|
|
return &ConfigDisconnect{}
|
|
})
|
|
}
|