public static void writeFile(String theFileName)
	{
	    try 
	    {
	        File currentFile = new File("plugins/CraftHUD/Resources/"+theFileName);
	        @SuppressWarnings("static-access")
	        JarFile jar = new JarFile(plugin.crafthud);
	        JarEntry entry = jar.getJarEntry("resources/"+theFileName);
	        InputStream is = jar.getInputStream(entry);
	        byte[] buf = new byte[2048];
	        int nbRead;
	        OutputStream os = new BufferedOutputStream(new FileOutputStream(currentFile));
	        while((nbRead = is.read(buf)) != -1) 
	        {
	            os.write(buf, 0, nbRead);
	        }
	        os.flush();
	        os.close();
	    }
	    catch (FileNotFoundException e) 
	    {
	        e.printStackTrace();
	    } 
	    catch (IOException e) 
	    {
	        e.printStackTrace();
	    }
	}