[HackuzMC] Problem with the 'setItem'.

Discussion in 'Spigot Plugin Development' started by CristianoTRS, Jun 28, 2018.

  1. My goal is when the player join the server a custom item appears in he's hotbar see below:

    Attached Files:

  2. Change
    Code (Java):
    new ItemStack[] { bau }
    Code (Java):

    EDIT: Also why are you setting the lore as an empty arraylist?
  3. Like this???? Or I have to put the ItemStack

    Attached Files:

  4. Remove the { } :) If you look at the method its red and says "player#getInventory#setItem(<slot>, <itemstack>);" not "player#getInventory#setItem<slot>, <itemstacklist>);"