try Do Instant Buy
fun tryDoInstantBuy(player: MacrocosmPlayer, element: Identifier, amount: Int, mutate: Boolean = true): CompletableFuture<InstantBuyResult>(source)
Attempts to instantly buy provided items
NOTE: this is a partially internal method, if you are looking for a way to do instant buy, look at Bazaar.instantBuy instead
Return
completable future that returns the result if successful
Parameters
player
player that initiated the instant buy
element
item that is being bought
amount
amount of items that are being bought
mutate
whether to mutate (modify count of items sold etc.) existing orders