public static void clearFolder(File folder){
	    if(folder.exists()) {
            for(String file : folder.list()) {
                if (new File(folder, file).isDirectory()){
                    //Logger.logInfo(new File(folder, file).toString());
                    clearFolder(new File(folder, file));
                }
                if(file.toLowerCase().endsWith(".zip") || file.toLowerCase().endsWith(".jar") || file.toLowerCase().endsWith(".disabled") || file.toLowerCase().endsWith(".litemod")) {
                    try {
                        boolean b = FileUtils.delete(new File(folder, file));
                        if(!b) Logger.logInfo("Error deleting " + file);
                    } catch (IOException e) {
                        e.printStackTrace();




                    }
                }
            }
	    }
	}