Discussion in 'Spigot Plugin Development' started by alzdoesmc, May 24, 2016.

  1. On my PlayerRespawnEvent, I have items given to the player. However, the items merely only appear in the inventory. When I try to interact with the items (right click), they disappear without a trace. Did anyone have any issues similar to mine, and if so, what did you do to overcome it?

    I really don't want to use a runnable...

    EDIT: I am calling Player#updateInventory() as well.
  2. You could try to give it to the player with a little delay, f. e. with a scheduler
  3. Try doing it with a runnable as AleWu said. Can't remember correctly, but I've had similar issues like this in the past and managed to fixed them through delayed schedulers.
  4. You could schedule the item adding with 1 tick delay
  5. That would do nothing because it would update an empty inventory