Plugin Help Replace Item in players hand with Potion

Discussion in 'Plugin Help/Development/Requests' started by zspaceminer9, Mar 30, 2015.

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

    zspaceminer9

    Hi I want to do what the title says.
    This doesn't work:
    Code:
     Potion potion = new Potion(PotionType.REGEN);
                <player>.getItemInHand().setType(potion);
    What would be the best way to do this?

    also just realized that this isn't plugin help but i cant change it D:
     
    Last edited: Mar 30, 2015
Thread Status:
Not open for further replies.

Share This Page