Tweaked KittyCannon

This commit is contained in:
Norbi Peti 2015-11-28 16:13:33 +01:00
parent 788e15a22d
commit 3a00450e3e
3 changed files with 2 additions and 1 deletions

Binary file not shown.

View file

@ -362,7 +362,8 @@ public class PlayerListener implements Listener { // 2015.07.16.
&& (hat.getType().equals(Material.SKULL) || hat.getType()
.equals(Material.SKULL_ITEM)) && ((SkullMeta) hat
.getItemMeta()).getDisplayName().equals("§rWolf Head")))
e.getPlayer().damage(1f, Bukkit.getPlayer(meta.getLore().get(0)));
e.getPlayer().damage(1f * item.getAmount(),
Bukkit.getPlayer(meta.getLore().get(0)));
e.getItem().remove();
// System.out.println("G");
e.setCancelled(true);