Skip to content

Conversation

@v0ee
Copy link
Contributor

@v0ee v0ee commented Nov 24, 2025

okay so context:
AntiIllegals already set a precedent of allowing "technically illegal" items into the server (e.g., unbreakables, enchanted unenchantable items, etc)
the previous nbt removal logic for armor stands, item frames, and full removal of bundles was overly aggressive: it stripped cosmetic data (ShowArms, Invisible, etc) and deleted any bundles outright. That behaviour doesn't match the plugin's existing pattern of reverting only the "bad" parts while keeping the rest intact when possible

so what changed?
armor stands now iterate ArmorItems/HandItems and only rewrite individual illegal stacks. cosmetic tags such as Small, ShowArms, etc survive.

same approach for item frames and bundle contents.

bundles get full feature parity with shulker boxes: we sanitize their items, and enforce a configurable book limit, and only drop books if theyre over the limit.
this lets the server keep bundles, (even though theyre unobtainable) just like it can keep unbreakables or collectibles via config.

lecterns checks use a books.lecternCheck flag and revert any book that is considered illegal

added interactItems flag plus a lowest priority interact listener, so the held item is reverted before use.

config was reorganized so every new behaviour is opt in or out, etc etc,

keep in mind this pr doesn't "unpatch" illegals, it just continues the same pattern this plugin is focused on, destroy items that are illegal by type. everything else is sanitized per the plugin's philosophy of letting players keep collectibles when they want to.
this results in harmless items being gone while removing any illegal gameplay advantages

log("illegalBlocks", "" + getConfig().getBoolean("illegalBlocks"));
log("nbtContainers", "" + getConfig().getBoolean("nbtContainers"));
log("nbtContainers.enabled", "" + getConfig().getBoolean("nbtContainers.enabled",
getConfig().getBoolean("nbtContainers")));
Copy link
Contributor

Choose a reason for hiding this comment

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

default value wrong

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@v0ee v0ee reopened this Jan 4, 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