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

Inventory

Comments in 'Plugin Development' started by Flabe, Jan 14, 2016.

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

    Flabe Active Member

    Joined:
    Nov 17, 2015
    Posts:
    147
    Minecraft User:
    Flabe231
    Hello friends , I wanna ask you , how do I remove and add items to players inventory?
    Please help if you know the answer.
  2. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    PHP:
    Inventory::addItem(Item $item);
    Inventory::removeItem(Item $item);
    Vaivez66 likes this.
  3. Flabe
    Offline

    Flabe Active Member

    Joined:
    Nov 17, 2015
    Posts:
    147
    Minecraft User:
    Flabe231
    What do I have to add in import(use\pocketmine) to make this work
  4. xBeastMode
    Offline

    xBeastMode Active Member

    Joined:
    Nov 27, 2015
    Posts:
    292
    use pocketmine\inventory\Inventory;
    applqpak likes this.
  5. XFuryMCPE
    Offline

    XFuryMCPE Active Member Plugin Developer

    Joined:
    Jun 19, 2015
    Posts:
    137
    Plugins:
    2
    Minecraft User:
    XFuriousMC
    /give <player> <itemID[:meta]> <amount>
    applqpak likes this.
  6. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    You don't have to.
    Wtf again?
    applqpak likes this.
Thread Status:
Not open for further replies.

Share This Page

Advertisement