private void scan() {
		for(String location : locations) {
			File pluginDir = new File(location);
			if (pluginDir.exists() && pluginDir.isDirectory()) {
				for (String n : pluginDir.list()) {
					if (n.endsWith(".jar")) {
						try {
							URL url = new File(location + File.separator + n)
									.toURI().toURL();
							PluginDescriptor plugin = parsePluginManifest(url);
							if (plugin != null) {
								plugins.add(plugin);
							}
						} catch (MalformedURLException e) {
							// This basically shouldn't happen, since we're
							// constructing
							// the URL directly from the directory name and the
							// name of
							// a located file.
						}
					}
				}
			}
		}
		logger.logTimedMessage("Found " + plugins.size() + " plugins", 0,0);
	}