Sell API

The EdToolsSellAPI provides a comprehensive set of tools for developers to interact with the player sell system.

Get API Instance

To begin using the Sell API, you first need to get an instance of it from the main EdToolsAPI class.

EdToolsSellAPI backpackAPI = EdToolsAPI.getInstance().getSellAPI();

Methods

sellItem(UUID playerUUID, String itemId, double amount)

Sells an item as a player. You need to specify the itemId from item-prices.yml and the amount to sell.

addSellSummary(UUID playerUUID, String currencyId, double amount)

Adds a currency to the sell summary.

getSellSummary(UUID playerUUID, String currencyId)

Returns a double with that currency sell summary.

Last updated

Was this helpful?