public function connect() { $this->verified = false; $pk = new ConnectPacket(); $pk->encodedPassword = base64_encode(Utils::aes_encode($this->password, $this->password)); $pk->isMainServer = $this->isMainServer(); $pk->description = $this->description; $pk->maxPlayers = $this->server->getMaxPlayers(); $pk->protocol = Info::CURRENT_PROTOCOL; $this->sendDataPacket($pk); }