Purchasable

data class Purchasable(val item: Identifier, val price: Number, val amount: Int = 1, val additionalItems: HashMap<Identifier, Int> = hashMapOf(), val onlyOne: Boolean = false)(source)

Constructors

Link copied to clipboard
constructor(item: Identifier, price: Number, amount: Int = 1, additionalItems: HashMap<Identifier, Int> = hashMapOf(), onlyOne: Boolean = false)

Properties

Link copied to clipboard

Any other items required to purchase this item

Link copied to clipboard
val amount: Int = 1

Amount of items that can be purchased

Link copied to clipboard

ID of the item

Link copied to clipboard
val onlyOne: Boolean = false

Whether you can only purchase this item in the quantity specified in amount

Link copied to clipboard

Price of the item in coins