Shop Help

Discussion in 'Plugin Development' started by CONTREKEE, Aug 24, 2014.

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

    CONTREKEE

  2. Offline

    TheMcScavenger

    • Check if the inventory contains [Material]
    • Check the amount of [Material] in the player's inventory
    • Multiply the amount of [Material] by the price per item
    • Remove the items from the inventory, and deposit the previously calculated amount
     
  3. Offline

    CONTREKEE

    How would I get the amount?

    Code:java
    1. player.getInventory().getItem(...)....
     
Thread Status:
Not open for further replies.

Share This Page