@SuppressWarnings("deprecation")
	@EventHandler
	public void onEntityRegainHealth(EntityRegainHealthEvent event) {
		if (enabled) {
			if (event.getEntity() instanceof Player) {
				if (victims.containsValue(((Player) event.getEntity()).getName())) {
					for (String name : victims.keySet()) {
						Player attacker = Bukkit.getPlayer(name);
						Player victim = Bukkit.getPlayer(victims.get(name));
						if (victim == event.getEntity()) {
							if (attacker.hasPermission("bossbar.use") && BarAPI.hasBar(attacker)) {
								new SetBossBar(attacker, victim, prefix, suffix).runTaskLater(this, 0L);
							}
						}
					}
				}
			}
		}
	}