38 private \Closure $onSuccess
42 $protocolVersion = $packet->getProtocolVersion();
43 if(!$this->isCompatibleProtocol($protocolVersion)){
44 $this->session->disconnectIncompatibleProtocol($protocolVersion);
51 NetworkSettingsPacket::COMPRESS_EVERYTHING,
52 $this->session->getCompressor()->getNetworkId(),
62 protected function isCompatibleProtocol(
int $protocolVersion) : bool{
63 return $protocolVersion ===
ProtocolInfo::CURRENT_PROTOCOL;