Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-4897

isSimilar Not working.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Minor Minor
    • None
    • None
    • windows 10
      spigot
      i7

    • git-Spigot-1eece4f-84400e6
    • Unreleased
    • Yes

      private ItemStack PortalGun(){
        ItemStack is = new ItemStack(Material.CROSSBOW, 1);
        is.addEnchantment(Enchantment.QUICK_CHARGE, 3);
        ItemMeta im = is.getItemMeta();
        im.addItemFlags(ItemFlag.HIDE_ENCHANTS);
        im.setDisplayName(main.Color("&9Portal Gun"));
        is.setItemMeta(im);
        return is;
      }

      if(e.getBow().isSimilar(PortalGun())){
        Entity entity = player.getWorld().spawnEntity(player.getLocation(), EntityType.CAT);
        e.setProjectile(entity);
      }

            Unassigned Unassigned
            YaItsZack YaItsZack
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: