Types
Link copied to clipboard
class BazaarError(currentQuery: Bazaar.Query, parent: Throwable?, orMessage: String? = null) : MacrocosmThrowable
An error that occurs when processing bazaar operation
Link copied to clipboard
Demands all items of type element from player
Link copied to clipboard
Demands coins amount of coins from the player.
Link copied to clipboard
Demands a certain quantity of items of type element from player
Functions
Link copied to clipboard
fun createBuyOrder(player: MacrocosmPlayer, paper: Player, item: Identifier, amount: Int, pricePer: Double)
Creates a buy order as the provided player
Link copied to clipboard
fun createSellOrder(player: MacrocosmPlayer, paper: Player, item: Identifier, amount: Int, pricePer: Double)
Creates a sell order as the provided player
Link copied to clipboard
Gets all orders for the provided player
Link copied to clipboard
Instantly buys provided items
Link copied to clipboard
Instantly sells provided items
Link copied to clipboard
fun tryDoInstantBuy(player: MacrocosmPlayer, element: Identifier, amount: Int, mutate: Boolean = true): CompletableFuture<InstantBuyResult>
Attempts to instantly buy provided items
Link copied to clipboard
fun tryDoInstantSell(player: MacrocosmPlayer, element: Identifier, amount: Int, mutate: Boolean = true): CompletableFuture<InstantSellResult>
Attempts to instantly sell provided items