Send client settings

This commit is contained in:
Tnze
2021-02-27 01:37:05 +08:00
parent 21207830c0
commit 3b83aaf8ae
5 changed files with 21 additions and 4838 deletions

View File

@ -21,7 +21,7 @@ func (e EventsListener) Attach(c *bot.Client) {
c.Events.AddListener(
bot.PacketHandler{Priority: 64, ID: packetid.Login, F: e.onJoinGame},
bot.PacketHandler{Priority: 64, ID: packetid.ChatClientbound, F: e.onChatMsg},
bot.PacketHandler{Priority: 64, ID: packetid.Disconnect, F: e.onDisconnect},
bot.PacketHandler{Priority: 64, ID: packetid.KickDisconnect, F: e.onDisconnect},
bot.PacketHandler{Priority: 64, ID: packetid.UpdateHealth, F: e.onUpdateHealth},
)
}