public void saveShieldsToFile() {
		if (plugin.getListener() == null || plugin.getListener().getShields() == null) {
			return;
		}
		
		if (!shieldsFile.exists())
		{
			try {
				shieldsFile.createNewFile();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
			
		
		try {
			shieldsDB.save(shieldsFile);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		HashMap<ShieldOwner, Shield> map = plugin.getListener().getShields();

	    final Iterator<Entry<ShieldOwner, Shield>> iter = map.entrySet().iterator();


	    while (iter.hasNext()) {
	        final Entry<ShieldOwner, Shield> entry = iter.next();
	        final Object value = entry.getValue().owner.getId();
	        final String key = entry.getKey().toString();
	        write2(key, value, shieldsFile);
	    }
	    
	}