@EventHandler(priority = EventPriority.HIGH)
	public void onPlayerDeath(EntityDeathEvent e){
		if(!(e.getEntity() instanceof Player)) return;
		Player victim = (Player) e.getEntity();
		if(!(victim.getKiller() instanceof Player)) return;
		Player killer = victim.getKiller();
		
		KarmaPlayer kVic = MaxPvP.instance.getKarmaPlayer(victim);
		KarmaPlayer kKil = MaxPvP.instance.getKarmaPlayer(killer);
		if(kVic == null){
			kVic = new KarmaPlayer(MaxPvP.instance, victim.getName(), 0, 0, 0, true);
			MaxPvP.instance.addKarmaPlayer(kVic);
		}
		if(kKil == null){
			kKil = new KarmaPlayer(MaxPvP.instance, killer.getName(), 0, 0, 0, true);
			MaxPvP.instance.addKarmaPlayer(kKil);
		}
		if(kKil.isValidKill(victim)){//cases issue
			ValidKillEvent vke = new ValidKillEvent(killer, victim, kKil, kVic);
			Bukkit.getPluginManager().callEvent(vke);
			
			if(!vke.isCancelled()){ 
				kKil.addKill(victim);
				kVic.addDeath();
				if(kVic.getRecentKills().containsKey(kKil.getName())){
					killer.sendMessage(ChatColor.GOLD + "[PvP] Revenge kill!");
				}
				killer.sendMessage(ChatColor.GOLD + "Kills: " + ChatColor.GREEN + kKil.getTotalKills() + " Deaths: " + ChatColor.GREEN + kKil.getTotalDeaths() + ChatColor.GOLD + " New KDR: " + ChatColor.GREEN + kKil.getKDR() + ChatColor.GOLD + " Killstreak: " + ChatColor.GREEN + kKil.getKillStreak());
				victim.sendMessage(ChatColor.GOLD + "Kills: " + ChatColor.GREEN + kVic.getTotalKills() + " Deaths: " + ChatColor.GREEN + kVic.getTotalDeaths() + ChatColor.GOLD + " New KDR: " + ChatColor.GREEN + kVic.getKDR());
				kVic.setOutOfCombat();
				kKil.update();
				kVic.update();
			}
		}
		else{
			killer.sendMessage(ChatColor.RED + "[PvP] That player is not worth points to you.");
		}
		
		if(r.nextDouble() < MaxPvP.instance.getConfig().getDouble("head-drop-chance")){
			ItemStack skull = new ItemStack(Material.SKULL_ITEM, 1, (short) SkullType.PLAYER.ordinal());
			SkullMeta meta = (SkullMeta) skull.getItemMeta();
			
			meta.setOwner(victim.getName());
			meta.setDisplayName(victim.getName() + "'s Head");
			skull.setItemMeta(meta);
			victim.getWorld().dropItem(victim.getLocation(), skull);
			killer.sendMessage(ChatColor.GREEN + "* " + victim.getName() + "'s head rolls off their limp shoulders *");
	}
		
		kVic.setFriendly(); //You're not so bad when you're dead.
	}