http://gyazo.com/ce1aa1144d6e74560f54751b2eb0865e I want color on the name and the killer and the message how to do and the plugin isn't working can someone tell me how the plugin.yml should see?
Can you just do this easy plugin i need it today and the message should be like: &c{Player} &7 Was killed by &c{Killer}
Try this: Code: @EventHandler public void onPlayerDeath(PlayerDeathEvent e) { if (e.getKiller() == null) return; e.setDeathMessage(e.getEntity().getName() + " was killed by " + e.getKiller().getName()); } Edit: If you want colors, use ChatColor.[Insert color here]
@Felixbakkum You need to learn Java, or at least the basics in order to understand what you are doing. Trying to code plugins in Java without knowing it is like writing an essay in German, when you don't even know how to speak it. I seriously suggest learning Java before coding with the Bukkit API.
Yup. @Felixbakkum Like I've told many people, here are a few good links: The Java™ Tutorials Interactive Java Tutorial thenewboston's Videos
Before you run your broadcast, I suggest you check to see if the killer is a player using if (k instanceof Played)