Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ItemSellEvent Returns AIR for Sold Items #1

Open
shika258 opened this issue Dec 15, 2024 · 0 comments
Open

ItemSellEvent Returns AIR for Sold Items #1

shika258 opened this issue Dec 15, 2024 · 0 comments

Comments

@shika258
Copy link

shika258 commented Dec 15, 2024

When players use the /sell hand or /sellhand ou /selldrops etc... command, the getSoldItem method in the ItemSellEvent always returns an ItemStack of AIR instead of the actual item being sold.

Steps to Reproduce
Hold an item (e.g., WHEAT) in hand.
Execute /sell hand or /sellhand.
getSoldItem returns AIR instead of the item.

Expected Behavior
getSoldItem should return the correct item being sold.

Logs
image

Environment
Minecraft Version: [e.g., 1.21.3]
Plugin Version: [last]

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

No branches or pull requests

1 participant