public PluginLoader(MainView view, String pluginRootDir, boolean preLoad) {
		this.view = view;
		this.pluginRootDir = pluginRootDir;
		this.threaded = preLoad;
		
		try {		
			File file = new File(pluginRootDir);
			URL url = file.toURI().toURL(); 
			URL[] urls = new URL[]{url};
			Log.getLogger().log(Level.INFO, "Setting plugin directory: " + urls[0].getPath());
			Helper.createPluginFolder(new File(urls[0].getPath()));
			Helper.copyPluginsToFolder(new File(urls[0].getPath()));
			this.classLoader = new FileClassLoader(urls);
		} catch (MalformedURLException e) {
			Log.getLogger().log(Level.SEVERE, "MalformedURLException", e);
		}
	}