writeOrKill tries to write the packet to the player and kills the connection on failure
(pk packet.Encodeable)
| 92 | |
| 93 | // writeOrKill tries to write the packet to the player and kills the connection on failure |
| 94 | func (p *Player) writeOrKill(pk packet.Encodeable) { |
| 95 | if err := p.WritePacket(pk); err != nil { |
| 96 | p.killConnection(false, "lost connection") |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | // finishConfiguration finishes the configuration phase by sending the server brand, registries and tags |
| 101 | func (p *Player) finishConfiguration() error { |
no test coverage detected