ShopItem

Represents an item in a shop.

Properties

Property

Type

Description

id()

String

Item identifier

material()

Material

Item material

displayName()

String

Display name

buyPrice()

double

Buy price

sellPrice()

double

Sell price

buyLimit()

Integer

Buy limit (null if unlimited)

sellLimit()

Integer

Sell limit (null if unlimited)

isCommandBased()

boolean

Whether item executes commands

Methods

Method

Return Type

Description

getBuyCommand()

String

Get buy command

getSellCommand()

String

Get sell command

isQuantityGui()

boolean

Check if quantity GUI is enabled

Last updated