Hiding a lore (ProtocolLib)

Discussion in 'Spigot Plugin Development' started by 24763, May 22, 2016.

  1. Hello again,
    I was wondering how it would be possible to hide a lore containing hidden player data, the reason for this that my item contains a blank area within the lore which i do not like. I found a Util class on Bukkit however that class does not seem to work with 1.9 due to this error "Type mismatch: cannot convert from ItemStack[] to ItemStack". If i change it then the other parts needed don't function properly. If anyone can help that would be helpful...

    Thanks!

    Code: http://hastebin.com/ufujugemod.avrasm
     
  2. It's an array of itemstacks, you need to loop through them:

    Code (Text):
    for (ItemStack stack : stackArray)
    {
        ItemStack itemstack = stack;
        // do stuff
    }