Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void player(PlayerDeathEvent d) {
- Player p = d.getEntity();
- Damageable a = p.getKiller();
- double health = a.getHealth();
- health *= 100.0D;
- health = Math.round(health);
- health /= 200.0D;
- p.sendMessage(pre + " §3Your Killer §c" + p.getName() + " §3Was On §c"
- + health + " ❤ ");
- Player killer = p.getKiller();
- killer.sendMessage(pre + " §3You Killed §c" + p.getName()
- + " §3With §c" + health + " ❤ ");
- killer.setHealth(20.0);
- d.setDeathMessage("");
- }
- public void food(FoodLevelChangeEvent e){
- e.setCancelled(true);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement