public void updateConfigFile() {

		// Only do this if the old configuration is present
		if (getConfig().isConfigurationSection("Warnings.warned")) {
			
			// Get all the currently warned players and put them in a HashMap
			Map<String,Object> userList= getConfig().getConfigurationSection("Warnings.warned").getValues(false);
			
			Integer c = 0;
			
			// Iterate the hashmap
			for(Map.Entry<String,Object> entry : userList.entrySet()) {
				
				String name = entry.getKey();
				Integer warn = (Integer) entry.getValue();
				
				// Get the current timestamp, we use this for the warned time
				Long secs = System.currentTimeMillis();
				
				// Write the new entries
				getConfig().set("Warned."+name.toLowerCase()+".remaining", warn);
				getConfig().set("Warned."+name.toLowerCase()+".timestamp", secs);
				
				// Delete the old entry
				getConfig().set("Warnings.warned."+name.toLowerCase(), null);
				
				c++;
			}
			
			// Remove the old section
			getConfig().set("Warnings.warned", null);
			
			// Remove the "kick" option
			getConfig().set("Action.kick", null);
			
			saveConfig();
			
			this.logger.info("[BadWords] ** Updated config file to new format. " + c + " users updated **");

		}
				
	}