Skip to content

Conversation

@Maxlego08
Copy link
Collaborator

Summary

  • add a /ah sellinventory command that opens an inventory for selling multiple items at once
  • introduce an inventory flow with confirm/cancel controls and service support for multi-item auction listings
  • refresh configuration defaults and messages to describe the new command and inventory UI

Testing

  • ./gradlew test

Codex Task

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 66 to 68
if (!this.validateSell(player, price, auctionEconomy, sellableItems)) {
sellableItems.forEach(itemStack -> player.getInventory().addItem(itemStack));
return;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve items when validation/creation rejects inventory sale

When a sell-inventory confirmation fails validation (price too high/low, world banned, blacklist, etc.), the items are added back with player.getInventory().addItem(...) but the returned overflow map is ignored. If the player’s inventory is already full, the stacks taken out of the SellInventory are silently lost instead of being dropped, and the same pattern appears in the exception handler below. This is a regression from the single-item flow, which validates before removing items, and results in item loss whenever validation or creation rejects a batch sale while the player has no free slots.

Useful? React with 👍 / 👎.

@Maxlego08 Maxlego08 merged commit 4f66585 into develop Dec 20, 2025
1 check passed
@Maxlego08 Maxlego08 deleted the codex/add-multiple-item-selling-feature branch December 20, 2025 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants