What's wrong with Item Lore?

Discussion in 'Plugin Help/Development/Requests' started by xWhileR, Sep 1, 2017.

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

    xWhileR

    Hello guys! I'm having an Issue in Item Lore that is not Settling. Can anybody help me?

    Thank you very much in advance!

    Coding:

    ItemStack bed = new ItemStack(Material.BED);
    ItemMeta bedMeta = bed.getItemMeta();
    bedMeta.setDisplayName(ChatColor.YELLOW + "Bed ;D");
    bed.setItemMeta(bedMeta);
    ArrayList<String> lore = new ArrayList<String>();
    lore.add("No xD");
    bedMeta.setLore(lore);

    inv.setItem(4, bed);
     
  2. Offline

    Zombie_Striker

    @xWhileR
    You have to set the item meta after you set the lore.
     
  3. Offline

    xWhileR

    I did not understand. Could you enter the correct Code?
     
Thread Status:
Not open for further replies.

Share This Page