@EventHandler
	public void onEntityDeath1(org.bukkit.event.entity.EntityDeathEvent event) {
		org.bukkit.entity.Entity ply = event.getEntity();
		if(event.getEntity().getLastDamageCause() instanceof org.bukkit.event.entity.EntityDamageByEntityEvent){
			org.bukkit.entity.Entity dmgr = ((org.bukkit.event.entity.EntityDamageByEntityEvent) event.getEntity().getLastDamageCause()).getDamager();
			if(ply instanceof Player){            
				if(dmgr instanceof Player){
					String worldname = ply.getWorld().getName();
					String player = ((Player) ply).getName();
					String damager = ((Player) dmgr).getName();
					Boolean staff = false;				
					Boolean staff2 = false;				
					double x = Math.floor(dmgr.getLocation().getX());
					double y = Math.floor(dmgr.getLocation().getY());
					double z = Math.floor(dmgr.getLocation().getZ());
					double x2 = Math.floor(ply.getLocation().getX());
					double y2 = Math.floor(ply.getLocation().getY());
					double z2 = Math.floor(ply.getLocation().getZ());

					if (getConfig.PlayerPvp()) {
						if (((Player) dmgr).hasPermission("PlayerLogger.staff")) {
							staff = true;
						}
						if (((Player) ply).hasPermission("PlayerLogger.staff")) {
							staff2 = true;
						}
						if (getConfig.logFilesEnabled()) {
							filehandler.logKill(player, damager, x, y, z, worldname, staff);
							filehandler.logKilledBy(player, damager, x2, y2, z2, worldname, staff2);
						}
						if (getConfig.MySQLEnabled()) {
							addData.add(damager,"kill",player, x, y, z, worldname, staff);
							addData.add(player,"killedby",damager, x, y, z, worldname, staff2);
						}}}}}}