[v3.0.1] Bugfix & Config Cleanup
Fixes
• Fixed a serious exploit where players could pull items out of the crafting
menu by dragging them into their inventory (worked in both Survival and Creative).
• Fixed menu protection being disabled entirely on servers WITHOUT ItemsAdder —
the click/drag guard now always registers. (No more "Failed to register events" error.)
• More reliable menu detection, so clicks and drags are always blocked correctly.
Changes
• Cleaned up the default config files (config.yml, recipes.yml, guis.yml):
7 ready-to-use Nexo recipe examples + commented examples for ItemsAdder items,
money cost (Vault), and per-recipe permission locking.
Update notes
• Drop-in update — just replace the .jar and restart.
• Existing configs are NOT overwritten; the cleanup only affects fresh installs.
- Barrier Hitbox → PlayerInteractEvent → NexoFurniture.furnitureMechanic(block.getLocation())
- Entity-based → PlayerInteractAtEntityEvent → NexoFurniture.furnitureMechanic(entity)
Added import NexoBlocks, Action, PlayerInteractEvent
Added onPlayerInteract handler — opens GUI on right-click on a block
Added blockMatches() method with support for:
Vanilla blocks (crafting_table, minecraft:crafting_table)
Nexo custom blocks (nexo:my_block)
ItemsAdder custom blocks (itemsadder:namespace:block)
guis.yml
Added block field in example GUI with a comment and examples of all three formats
