Remove certain number of items from the inventory

Discussion in 'Spigot Plugin Development' started by sinnlosername, May 12, 2015.

  1. Is there a way to remove a certain number of items from the inventory of a player?

    example:
    Inventory: 64 Clay, 1 sword and armor
    Of these, 64 now I want to remove clay loam 10 if it has as much or more clay.
    Code Example plz

    Thanks in Advance