So yeah. Im working on a plugin and I want to make an interaction between the killer and the victim, sucks that they done have the e.getKiller(), doesnt it? What if we add that method to the event in the next version of spigot? Aint it a great idea? kthxbai
you can use e.getEntity().getKiller() Code (Text): @EventHandler public void onDeath(EntityDeathEvent e) { e.getEntity().getKiller().sendMessage("that wasnt nice!"); }