Você está declarando a entidade em Jogador..
Coloque isso:
@EventHandler
public void WitheredGetHit(EntityDamageByEntityEvent e) {
if(e.getEntity() instanceof Player && e.getDamager() instanceof Wither) {
Player p = (Player)e.getEntity();
Entity damager = (Entity)e.getDamager();
Random rand = new Random();
rand.nextInt(40);
p.addPotionEffect(new PotionEffect(PotionEffectType.WITHER, 80, 1));
e.setCancelled(false);
}
}