Giving Potions

Discussion in 'Plugin Development' started by BroTotal, May 25, 2013.

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

    BroTotal

    I'm working on my coding and all for my KitPVP Plugin and I know how to give like weapons, sticks, and like buckets and such but i'm not sure how I would give Splash Potions or Regular Potions. NOT THE EFFECT but the POTION itself.

    This is what I think I need to Use

    Code:
          player.getInventory().addItem(new ItemStack[] { new ItemStack(Material.[COLOR=#ff0000]NAME OF OBJECT[/COLOR]) });
    please help me out? thanks in advance.
     
  2. Offline

    Tzeentchful

Thread Status:
Not open for further replies.

Share This Page