public void saveShieldsBaseToFile() {
		if (plugin.getListener() == null || plugin.getListener().getShields() == null) {
			return;
		}
		
		if (!shieldbaseFile.exists())
		{
			try {
				shieldbaseFile.createNewFile();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}

		HashMap<Block, ShieldBase> map = plugin.getListener().getShieldsBase();
		Object obj = map;
		
		
		new File(directory).mkdir();

	    final Iterator<Entry<Block, ShieldBase>> iter = map.entrySet().iterator();


	    while (iter.hasNext()) {
	        final Entry<Block, ShieldBase> entry = iter.next();
	        final Object value = entry.getValue().getShieldBaseLoc();
	        final String key = entry.getValue().getShieldBase().toString();
	        write3(key, value, shieldbaseFile);
	    }
		
		
		
	}