I have this problem that I am trying to get the killers health from the PlayerDeathEvent but it gives me the error that the method getHealth() is ambiguous for the type Player

Here is a piece of the code.

```
@EventHandler
public void onDeath(PlayerDeathEvent event) {
    Player p = event.getEntity();
    Player killer = p.getKiller();
    double playerHealth = killer.getHealth();
}

```

Anyone got any idea why it's not working?