public function confirmBuy($sender){ $money = EconomyAPI::getInstance()->myMoney($sender); if($money > $this->paymentPrice){ EconomyAPI::getInstance()->reduceMoney($sender->getName(), $this->paymentPrice, true); $sender->getInventory()->addItem(Item::get($this->itemId, $this->itemMeta, $this->itemCount, 1)); $sender->sendMessage("You have bought " . $this->itemName); So my question is how do i give someone in their inventory an item with count beucase everytime i click on a simple form button it only gives me 1 item i need answer quick please
new Item($id, $meta, $count); doesn't return fully qualified "implemented" item class, there is a function known as Item::get($id, $meta, $count);