withdraw
static boolean withdraw(int itemId, int amount)
Content copied to clipboard
Withdraws the specified amount of an item with the specified id
Return
true if withdrawn successfully, false otherwise
Parameters
itemId
the item id
amount
the amount to withdraw
Withdraws the specified amount of an item with the specified name
Return
true if withdrawn successfully, false otherwise
Parameters
itemName
the item name
amount
the amount to withdraw