Set an item in a players hand?

Discussion in 'Plugin Development' started by Phinary, Aug 7, 2012.

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

    Phinary

    Before the 1.3 update, I made a few custom potions on my server. I did this to remove the potion from their hand:

    player.setItemInHand(new ItemStack(374, 1));

    The only issue now is that, after changing the API jar from the 1.2.5 RB to the 1.3 RB, it doesn't seem to work. Does anyone have any idea on how to fix this? I was thinking of reloading the inventory or something, but I think that is deprecated. Thanks!
     
  2. Offline

    Bobfan

    It could just be since 3.1 just came out. It could be fixed in the next RB.
     
Thread Status:
Not open for further replies.

Share This Page