Solved ItemStack not adding name or lore

Discussion in 'Plugin Help/Development/Requests' started by _Die, Mar 6, 2015.

Thread Status:
Not open for further replies.
  1. Offline


    Hello, so I am making a server a custom kit plugin and I am making the armor itemstacks. Once I run and test my kit everything else works except for the lore and display name. Thanks in advance! -Die
    ItemStack boots = new ItemStack(Material.DIAMOND_BOOTS);
                        ItemMeta boots1 = boots.getItemMeta();
                        boots1.setDisplayName(ChatColor.YELLOW + "Diamond Boots");
                        boots1.setLore(Arrays.asList(ChatColor.DARK_GRAY + "[" + ChatColor.YELLOW + "Package Item" + ChatColor.DARK_GRAY + "]"));
                        boots.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
                        boots.addEnchantment(Enchantment.PROTECTION_FIRE, 1);
                        boots.addEnchantment(Enchantment.DURABILITY, 1);
  2. Offline


    maxmar628 likes this.
  3. Offline


    xD I feel stupid. Thank you :)
Thread Status:
Not open for further replies.

Share This Page