@Override
	public OreLookup lookup(String player, Integer time, List<Integer> restrict) {
		OreLookup ore = new OreLookup(player);
		for (String w : plugin.getConfiguration().getWorlds()) {
			
			QueryParameters parameters = new QueryParameters();
			
			parameters.addActionType("block-break",MatchRule.INCLUDE);
			parameters.setWorld(w);
			
			String dateFrom = null;
			Calendar cal = Calendar.getInstance();
			cal.add(Calendar.SECOND, -1 * time);
			SimpleDateFormat form = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
			dateFrom = form.format(cal.getTime());
			
			parameters.setSinceTime(dateFrom);
			parameters.addPlayerName(player);
			parameters.setLimit(-1); 
			parameters.setAllowNoRadius(true);
			for (int value : restrict){
				parameters.addBlockFilter(value, (byte) 0);
			}
			
			try {
				ActionsQuery aq = new ActionsQuery(this.prism);
				QueryResult lookupResult = aq.lookup( parameters );
				if(!lookupResult.getActionResults().isEmpty()){

					List<Handler> results = lookupResult.getActionResults();
					if (results != null) {
						for (Handler a: results) {
							ore.add(a.getBlockId(), a.getAggregateCount());
						}
					}				
				}
			}
			catch(NullPointerException ex) {
				plugin.log("Unexpected Exception while fetching Data from Prism: "+ex.getMessage());
			}	
		}
		return ore;
	}