public static void OnPlayerDamage(EntityDamageEvent e) { Player victim = null; Player attacker = null; if(victim instanceof Player) { victim = (Player) e.getEntity(); if(victim.getKiller() instanceof Player) { attacker = victim.getKiller(); e.setCancelled(true); } } }