Skip to content

PLUGINS EVENT MARKETPLACE LIST

github-actions[bot] edited this page Jul 29, 2026 · 1 revision

Plugin Event: marketplace.list

This mutable, cancellable event runs after the requested price passes native limits and before a token is spent or furniture is reserved. RawPrice is the seller price before commission.

host.Events().Listen(event.MarketplaceListName, event.ListenerOptions{}, func(_ context.Context, current event.Event) error {
	listing := current.(*event.MarketplaceList)
	listing.RawPrice = max(listing.RawPrice, seasonalMinimum)
	return nil
})

The changed price is checked against configured minimum and maximum values. Cancellation leaves the token and furniture untouched.

Clone this wiki locally