Tweaked KittyCannon
This commit is contained in:
parent
788e15a22d
commit
3a00450e3e
3 changed files with 2 additions and 1 deletions
Binary file not shown.
Binary file not shown.
|
@ -362,7 +362,8 @@ public class PlayerListener implements Listener { // 2015.07.16.
|
||||||
&& (hat.getType().equals(Material.SKULL) || hat.getType()
|
&& (hat.getType().equals(Material.SKULL) || hat.getType()
|
||||||
.equals(Material.SKULL_ITEM)) && ((SkullMeta) hat
|
.equals(Material.SKULL_ITEM)) && ((SkullMeta) hat
|
||||||
.getItemMeta()).getDisplayName().equals("§rWolf Head")))
|
.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();
|
e.getItem().remove();
|
||||||
// System.out.println("G");
|
// System.out.println("G");
|
||||||
e.setCancelled(true);
|
e.setCancelled(true);
|
||||||
|
|
Loading…
Reference in a new issue