removeItem

fun removeItem(player: Player, item: Item, count: Int): Boolean

Remove a count of items from player's inventory.

Return

true if removal succeeded, false otherwise

Parameters

player

the Player to modify

item

item type to remove

count

amount to remove