private static Script getScript(File f) {
		String name = f.getName();
		try {
			try {
				URL[] urls = new URL[] { f.getAbsoluteFile().getParentFile().getParentFile().toURI().toURL() };
				System.out.println(urls[0]);
				URLClassLoader classLoader = new URLClassLoader(urls, IRCClient.class.getClassLoader());
				
				Class<?> c = classLoader.loadClass("scripts."
						+ name.substring(0, name.lastIndexOf(".script")));
				classLoader.close();
				return (Script) c.newInstance();
			} catch (Exception e) {
				e.printStackTrace();
				return new InvalidScript(f.getName().substring(0,
						f.getName().lastIndexOf(".script")));
			}
		} catch (Exception e) {
			e.printStackTrace();
			return new InvalidScript(f.getName());
		}
	}