-
Notifications
You must be signed in to change notification settings - Fork 1
PLUGINS EVENT MARKETPLACE BUY
github-actions[bot] edited this page Jul 29, 2026
·
1 revision
marketplace.buy runs inside the listing transaction after the open listing is
locked and before the buyer is charged. BuyerPrice is mutable and already
includes native commission.
host.Events().Listen(event.MarketplaceBuyName, event.ListenerOptions{}, func(_ context.Context, current event.Event) error {
purchase := current.(*event.MarketplaceBuy)
purchase.BuyerPrice = purchase.BuyerPrice * 80 / 100
return nil
})The final non-negative value is the amount actually charged and published in the committed sale fact. Cancellation rolls back charge, transfer, and sold state.
Pixels
Getting Started
Architecture
Architecture Internals
Authentication
Users
Navigator
Inventory
Furniture
Rooms
Decoration
Games
Plugins
- PLUGINS-OVERVIEW
- PLUGINS-CREATING
- PLUGINS-LISTENERS
- PLUGINS-EVENTS-REALMS
- PLUGINS-EVENTS-ECONOMY-ROOMS
- PLUGINS-EVENTS-MODERATION-TRADES
- PLUGINS-EVENTS-COMMERCE-WORLD
- PLUGINS-EVENT-FURNITURE-MOVE
- PLUGINS-EVENT-FURNITURE-PICKUP
- PLUGINS-EVENT-ROOM-CREATE
- PLUGINS-EVENT-MARKETPLACE-LIST
- PLUGINS-EVENT-MARKETPLACE-BUY
- PLUGINS-EVENT-PLAYER-PROFILE-UPDATE
- PLUGINS-EVENT-BOT-SPEECH
- PLUGINS-EVENT-GROUP-MEMBERSHIP-CHANGE
- PLUGINS-EVENT-MESSENGER-FRIEND-REQUEST
- PLUGINS-EVENT-MESSENGER-FRIEND-ACCEPT
- PLUGINS-EVENT-CRAFTING-CRAFT
- PLUGINS-WIRED
- WIRED
- PLUGINS-COMMANDS
- PLUGINS-SDK
- PLUGINS-DEPLOYMENT