Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.livecraft.bigpeking.DeathAnnouncer;
- //insert these imports yourself
- public class DeathTracer extends EntityListener {
- public static DeathAnnouncer plugin;
- public DeathTracer(DeathAnnouncer instance){
- plugin = instance;
- }
- public void onEntityDeath(EntityDeathEvent event) {
- if (event.getEntity() instanceof Player) {
- plugin.getServer().broadcastMessage(ChatColor.AQUA+((Player)event.getEntity()).getName()+ChatColor.RED+" has died.");
- }
- }
- }
Add Comment
Please, Sign In to add comment