MCPcopy Create free account
hub / github.com/TyphoonMC/TyphoonCore / Handle

Method Handle

packet_handle.go:654–663  ·  view source on GitHub ↗
(player *Player)

Source from the content-addressed store, hash-verified

652 return
653}
654func (packet *PacketPlayKeepAlive) Handle(player *Player) {
655 if player.protocol > V1_8 {
656 if player.keepalive != packet.Identifier {
657 player.Kick("Invalid keepalive")
658 }
659 } else {
660 player.keepalive = packet.Identifier
661 }
662 player.keepalive = 0
663}
664func (packet *PacketPlayKeepAlive) Id() (int, Protocol) {
665 return 0x1F, V1_10
666}

Callers

nothing calls this directly

Calls 1

KickMethod · 0.80

Tested by

no test coverage detected