Player need to relog to get the items?!

Discussion in 'Spigot Plugin Development' started by Waterman2707, May 16, 2015.

  1. Hey Spigot

    I have got a really annoying "bug". It's with the PlayerInteractEvent i have stopped players from placing tripwire hooks, but then they so place them, they need to right click a random place again or relog ot get the item back. Also if you right click on a certain block it will give you items with a method i have write. But there they also need to relog to get the items. Heres come the strange i use the same method another place in a command, and there it work fine???

    //water
     
  2. Try player.updateInventory(), possibly delayed.
     
  3. Thank you it worked! :D