FixIllegalEnchants - dniym/IllegalStack GitHub Wiki

OFF BY DEFAULT - (Affects All Versions)

Will correct any enchantment level found that is larger than vanilla minecraft allows, this option is OFF by default because there are currently no known exploits that allow for the creation of such items. However; plugins do sometimes create ultra strong items, or if you've had an admin who used the /give command to create some really OP things then this option will remove those items. This protection can be bypassed by enabling the bypass option below and giving players with the illegalstack.enchantbypass permission (defaults to OP), anyone given this permission will be able to possess an over enchanted/illegally enchanted item without having the enchantments removed.

  • Fixes any enchantment that has its level greater than the vanilla limits (Unbreaking 10 on a pickaxe), and reduces it to the highest vanilla allowed level.
  • Removes any enchantment found on an item that could not normally be put there (Damage_All on a stick, Infinity on a shovel)

This protection has detection for the following 3rd party plugins:

  • McMMO
  • SlimeFun
  • EpicRename
  • SaberFactions

-

This protection ONLY functions if turned on, and can usually safely be left off. However it can detect what would be otherwise Illegal Enchantments on items created by these plugins and it will ignore them without you ever needing to do anything.


To enable / disable this protection use the following command: /istack toggle FixIllegalEnchants


  • EnchantedItemWhiteList - Will skip fixing any item exactly matching the type,name and lore.

  • OnlyFunctionInWorlds - Will ONLY check for IllegalEnchantments in the worlds listed, if this list is empty all worlds are checked by default.

  • AllowBypass - Allow users with this permission illegalstack.enchantbypass to have items that break the vanilla enchant limits (defaults to OP).

  • CustomEnchantOverride - Allows for adjusting of a given enchantments max level. Meaning if you add Sharpness.10 to this list then only items with sharpness 11 and above will be removed. NOTE this has no other affect on other enchants and does NOT allow for lowering max enchant values lower than vanilla levels.

  • RemoveUnbreakableFlag - Will remove the Unbreakable flag from items held by players (unless they have the bypass permission). NOTE this protection can be turned on WITHOUT fixIllegalEnchantments being turned on.

  • RemoveCustomAttributes - Will remove ALL custom attributes found on items held by players (unless they have the bypass permission). This is useful for getting rid of sticks with +1000 damage or insta death helmets that have been previously cheated in. NOTE If you're running < 1.13 this protection requires NbtAPI 2.0.0+ Note2 this protection can be turned on WITHOUT fixIllegalEnchantments being turned on.

  • DestroyIllegallyEnchantedItemsInstead Will destroy an item that has illegal enchantments rather than fixing them.