Solved Giving players JSON items (NBT) - (books for example)

Discussion in 'Plugin Development' started by Blockhead7360, Dec 23, 2016.

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

    Blockhead7360

    Hello!

    I am making a plugin that involves giving a player a book. However, I need this book to have clickable and text that you can hover over, which I can do with NBT tags and all that.

    I could make the command, but then if I get the console to dispatch it, it might say in chat on some servers that an item was given to this player (which I wouldn't want).

    I was wondering how to add NBT to a Bukkit ItemStack and then give it to a player? I looked up information on this, but I saw people convert a Bukkit ItemStack to the net.minecraft one, but I don't know how to actually add the item to the player's inventory.

    Please help!

    Thanks
     
  2. Offline

    I Al Istannen

  3. Offline

    Blockhead7360

    Your MiniNBT looks good! I'll try it out when I can

    EDIT: It works! There is something that doesn't work for me, but that's probably due to my code, and I'm going to post another thread on that. Thanks!
     
    Last edited: Dec 24, 2016
  4. Offline

    I Al Istannen

Thread Status:
Not open for further replies.

Share This Page