private void OnServerErrorResponse(int toClient, EServerErrorCode errorCode) { using (Packet _packet = new Packet((int)PacketTypes.ServerPackets.SERVER_ERROR)) { ServerError serverErrorObj = new ServerError(errorCode); serverErrorObj.ToPacket(_packet); SendTCPData(toClient, _packet); } }