Skip to content

Improve support for plugins modifying upper player inventory - #439

Open
Jikoo wants to merge 3 commits into
masterfrom
dev/improve-plugin-compat
Open

Jikoo wants to merge 3 commits into
masterfrom
dev/improve-plugin-compat

Conversation

@Jikoo

@Jikoo Jikoo commented Oct 17, 2026

Copy link
Copy Markdown
Owner

Removes the slot differences for contents vs individual items that were previously used to prevent bad sorting plugins from doing nasty things. Now throws errors when plugins try to delete items by setting invalid slots.

Closes #438

Less useful for preventing bad sorting plugin behavior, but more useful for most sane cases like inventory-wide item manipulation.
@Jikoo

Jikoo commented Oct 17, 2026

Copy link
Copy Markdown
Owner Author

May want to reimplement all of storageContents, firstEmpty, other searches. It's annoying, but the default implementations aren't great anyway, particularly on Spigot.

Jikoo added 2 commits October 18, 2026 11:36
Corrects slots for all, first, and firstEmpty.
Still need to reimplement addItem and removeItem, then port to Spigot.
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.

every time i open a player's inventory, their inventory dupes

1 participant