• Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

Please update - this release fixes an enchantment duplication exploit in 1.x.

Fixed

  • An exploit that let players duplicate enchantments.
  • Your own enchanted book could be lost when you clicked a book slot while holding it.
  • The Disenchant All confirmation was kept in a saved variable, so it could carry over after a reload or restart and skip the confirmation.
  • More reliable handling of a full inventory: anything that doesn't fit is dropped at your feet.

Changed
  • The menu is now click-only: click an enchanted item in your inventory to put it in, click a book to extract that enchantment, click the item to take it back. Nothing is placed or dragged by hand any more.
  • Books shown in the menu are display icons. The real book is created only once the enchantment has been removed from the item.
  • Shift-click, number keys, double-click and dragging are blocked while the menu is open.
  • Disenchant All arms on the first click and runs on the second (10 seconds to confirm).
  • Function renamed: openDisenchanterFunction(player) is now openDisenchanter(player). Update any script of yours that opens the menu.

Added
  • Options block for the menu title, button names, permission and the unbreakable rule.
  • Permission disenchanter.use, on by default. Set require_permission: false to keep the old behaviour where everyone has access.
  • Unbreakable items can be refused (on by default).
  • Clear refusals for enchanted books, stacked items and items with more than 20 enchantments.
  • A "How it works" book and tooltips in the menu, and action-bar messages for errors.
  • If you die with the menu open, the item drops with the rest of your inventory.

Upgrading from 1.x
Replace the file and reload. Give players disenchanter.use or turn the permission off. The old {disenchantConfirm::*} variables are no longer used.