public void givePickaxeIntervalReward(Player p, int breaks) {

		if (pickaxeIntervalRewards == null || pickaxeIntervalRewards.isEmpty()) {
			return;
		}

		for (Reward r : pickaxeIntervalRewards.values()) {
			if (breaks % r.getBlocksNeeded() == 0) {

				if (r.getCommands() == null || r.getCommands().isEmpty()) {
					return;
				}

				for (String cmd : r.getCommands()) {

					String f = cmd.replace("%player%", p.getName()).replace(
							"%blocksbroken%", breaks + "");

					if (cmd.startsWith("ezmsg ")) {
						p.sendMessage(ChatColor.translateAlternateColorCodes(
								'&', f.replace("ezmsg ", "")));
					} else if (cmd.startsWith("ezbroadcast ")) {
						Bukkit.broadcastMessage(ChatColor
								.translateAlternateColorCodes('&',
										f.replace("ezbroadcast ", "")));
					} else {
						Bukkit.getServer().dispatchCommand(
								Bukkit.getConsoleSender(), f);
					}

				}
			}
		}
	}