@EventHandler
	public void onHangingBlockPlace(HangingPlaceEvent event) {
		Player player = event.getPlayer(); // get player
		Hanging block = event.getEntity(); // get block placed
		// check config
		FileConfiguration config = plugin.getConfig();
		String material = block.getType().toString();
		// if deactivated, don't continue checking
		if(config.getBoolean("searchfor." + material + ".activate") == false) {
			return;
		}
		int radius = config.getInt("searchfor." + material + ".checkradius");
		int allowednumberofblocks = config.getInt("searchfor." + material + ".allowednumberofblocks");
		int blockCounter = 1;
		List<Entity> entitiesnearby = event.getEntity().getNearbyEntities(radius, radius, radius);
		for(Entity entity : entitiesnearby) {
			if(entity.getType().toString().equalsIgnoreCase(material)) {
				blockCounter++;
			}
		}
		if(blockCounter > allowednumberofblocks) {
			player.sendMessage(ChatColor.RED + "It's not allowed to place more than " + allowednumberofblocks + " blocks of " + material
					+ " in a radius of " + radius + ".");
			if(config.getBoolean("general.warnonconsole") == true) {
				Bukkit.getLogger().info(
						"[" + plugin.getName().toString() + "] " + player.getName() + " tried to set more than " + allowednumberofblocks
								+ " blocks of " + material + " in a radius of " + radius + ".");
			}
			event.setCancelled(true);
			return;
		}
	}