Unbreakable command internal error

Discussion in 'Plugin Development' started by phonkCoder, Oct 8, 2022.

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

    phonkCoder

    I coded a plug in that turns the item I am holding unbreakable. I tested the plugin, but it's giving me an internal error.
     

    Attached Files:

  2. Offline

    timtower Administrator Administrator Moderator

  3. Offline

    Strahan

    Use getItemInMainHand(), not getItemInUse().

    Also don't forget you need to set it back into their hand after you modify it.
     
Thread Status:
Not open for further replies.

Share This Page