public static void updateUpdater() {
        File root=new File(Main.path);
        root.mkdir();

        double version=0.0;


        //Get current updater jar version from web
        try {
            URL url=new URL("http://"+Main.ip+"/d0941e68da8f38151ff86a61fc59f7c5cf9fcaa2/computer/updaterVersion.html");
            BufferedReader in=new BufferedReader(new InputStreamReader(url.openStream()));

            String ln; String out="";
            while ((ln=in.readLine())!=null) out+=ln;
            in.close();

            version=Double.parseDouble(out);
        } catch (Exception e) {}

        File vers=new File(Main.path+"version.txt");
        vers.delete();

        try {
            PrintWriter out=new PrintWriter(Main.path+"version.txt");
            out.print(version);
            out.close();
        } catch (Exception e) {}


        File updater=new File(Main.path+"Updater.jar");
        updater.delete();

        try {
            URL website = new URL("http://"+Main.ip+"/d0941e68da8f38151ff86a61fc59f7c5cf9fcaa2/computer/Updater.jar");
            ReadableByteChannel rbc = Channels.newChannel(website.openStream());
            FileOutputStream fos = new FileOutputStream(Main.path+"Updater2.jar");
            fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
        } catch (Exception e) {e.printStackTrace();}
    }