Skip to content

Add a completed spawner sale event - #357

Closed
bestzige wants to merge 1 commit into
OpenVdra:mainfrom
DojoSMP:feat/spawner-sell-completed-event
Closed

bestzige wants to merge 1 commit into
OpenVdra:mainfrom
DojoSMP:feat/spawner-sell-completed-event

Conversation

@bestzige

Copy link
Copy Markdown

The existing sell event fires before payment and storage removal, so listeners cannot distinguish a completed sale from one that failed. Add SpawnerSellCompletedEvent after both steps succeed, carrying the player, location, full item quantities, and amount paid.

If storage removal fails after payment, log the failure for reconciliation and do not emit the completed event. Payment and storage persistence are not atomic.

Validation: gradlew build --no-daemon passed. Live sale, cancelled sale, failed deposit, and failed storage removal have not been exercised.

@bestzige
bestzige marked this pull request as ready for review October 27, 2026 11:54
@DojoSMP DojoSMP closed this by deleting the head repository Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants