public String name(final Material material) {
		String template = plugin.getConfig().getString(
				"Display.ItemNameFormat", "%randprefix% %randsuffix%");
		String prefix = "";
		String suffix = "";
		String matName = material.name();
		if (plugin.hmprefix.containsKey(material)) {
			List<String> l = plugin.hmprefix.get(material);
			prefix = l.get(plugin.getSingleRandom().nextInt(l.size()));
		}
		if (plugin.hmsuffix.containsKey(material)) {
			List<String> l = plugin.hmsuffix.get(material);
			suffix = l.get(plugin.getSingleRandom().nextInt(l.size()));
		}
		boolean t = plugin.getConfig().getBoolean("Display.ItemMaterialExtras",
				false);
		if ((prefix.length() < 1) || !t) {
			prefix = plugin.prefix.get(plugin.getSingleRandom().nextInt(
					plugin.prefix.size()));
		}
		if ((suffix.length() < 1) || !t) {
			suffix = plugin.suffix.get(plugin.getSingleRandom().nextInt(
					plugin.suffix.size()));
		}
		if (template == null)
			return null;
		return template.replace("%randprefix%", prefix)
				.replace("%randsuffix%", suffix).replace("%matname%", matName);
	}