Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Adding item to inv

Comments in 'Plugin Development' started by Jelly9912, Dec 20, 2015.

  1. Jelly9912
    Offline

    Jelly9912 Active Member

    Joined:
    Aug 8, 2015
    Posts:
    118
    Minecraft User:
    Jelly9912
    Someone can give me a code for adding item to the inventory of player? Thanks ;)
  2. Nawaf_Craft1b
    Offline

    Nawaf_Craft1b Active Member Plugin Developer

    Joined:
    May 8, 2015
    Posts:
    232
    Plugins:
    1
    Minecraft User:
    Nawaf_Craft1b
    PHP:
    $player->getInventory()->addItem(Item::get($idItem));
    Jelly9912 likes this.

Share This Page

Advertisement