public static void loadMods() {
		File base = new File(Constant.MODS);
		if (!base.exists()) {
			base.mkdir();
		}
		File[] files = base.listFiles();
		for (int i = 0; i < files.length; i++) {
			File[] fles = files[i].listFiles();
			for (int a = 0; a < fles.length; a++) {
				File z = fles[a];
				if (z.getName().equals("modinfo.xml")) {
					Mod mod = Mod.addMod(files[i]);
					SAXBuilder b = new SAXBuilder();
					try {
						Document document = b.build(z);
						Element root = document.getRootElement();
						for (Element e : root.getChildren("author")) {
							mod.authors.add(e.getText());
						}
						for (Element e : root.getChildren("website")) {
							mod.websites.add(e.getText());
						}
						for (Element e : root.getChildren("require")) {
							mod.requires.add(e.getText());
						}
						mod.name = root.getChildText("name");
						mod.shortName = root.getChild("name").getAttributeValue("short");
						mod.start = root.getChildText("start");
						mod.update = root.getChildText("update");
						mod.version = root.getChildText("version");
						mod.printInformation();
					} catch (JDOMException e) {
						e.printStackTrace();
					} catch (IOException e) {
						e.printStackTrace();
					}
				}
			}
		}
	}