Enchantment Limiter 1.2
Details
-
FilenameEnchLimiter.jar
-
Uploaded by
-
UploadedJul 14, 2014
-
Size19.65 KB
-
Downloads225
-
MD5174cb9c081122996511aa848db1b0cfc
Supported Bukkit Versions
- CB 1.7.9-R0.1
- CB 1.7.2-R0.3
- CB 1.6.4-R2.0
Changelog
1.2: Many changes, but not all tested
- Fixed: NPE when enchanting books with a disallowed enchant > 1. Ticket 2.
- Added:
- Allow repairs: new config item that allows repairing disallowed items in an anvil. Default = false
- note that repairs are defined as same items in each slot, rightmost item has no enchants. Anything else might be an attempt to boost enchants.
- this does mean that some repairs won't work, such as two identically enchanted items except for wear. It's costly to repair this way; suggest repairing each tool individually
- related new permission, enchlimiter.repairs, allows repairs even if not configured to.
- note that repairs are defined as same items in each slot, rightmost item has no enchants. Anything else might be an attempt to boost enchants.
- Downgrade repairs: new config item that downgrades repaired items until they are legal; if that is not possible, repair is disallowed
- only active when Allow repairs is true
- related new permission, enchlimiter.repairs.nodowngrade ignores if Downgrade repairs is true.
- Fix spawned items: new config flag, which if you set to true will allow downgrade or remove illegal enchants from spawned items. Default false.
- impacts any item "dropped" like mob drops, player drops, or fishing.
- this behavior used to be the case when Stop pickup was true; now you have individual control.
- set command of base el command permits changing boolean configuration values
- requires further to detail desired boolean:
- multiples on|true allows multiple enchanted items. Use off or false to restrict multiples.
- pickup on|true allows pickup of disallowed items, which will then be "fixed" so they can be used
- set to off|false to disallow pickup of illegal enchanted items.
- punish on|true allows punishing the player (not restoring XP) who attempted an illegal anvil action
- repairs on enables repair protections; set off|false to permit players to repair (but not create) disallowed items
- spawns on|true allows spawned items to have disallowed enchants
- set to off|false to downgrade or remove disallowed enchants on spawned items
- downgrade on when repairs are allowed, will attempt to downgrade repair to allowed level.
- if cannot downgrade (ex. disallowed level is 1) the repair will not be allowed.
- effectively sets Downgrade repairs config item.
- message option allows setting one of three 'Message' config items
- message cancel true enables Message on cancel
- message limit true enables Message on limit
- message disallowed true enables Message on disallowed
- save command of base el command permits saving your changed configuration to config.yml
- Allow repairs: new config item that allows repairing disallowed items in an anvil. Default = false
1.1:
- Fixed: bug that allowed bypassing limits with Shift-clicking
- Added: el admin command
- alias is enchlimiter if el is already in use
- only available command today is reload, which you would run after editing your config.yml
1.0: Restore XP on cancelled anvil actions
- Fixed:
- Added new config Restore levels that restores XP on cancelled enchant added in 0.9
- default is different than 0.9 and is true
- if you want same behavior as 0.9 (to punish?) set to false
- See history below for explanation
- Added new config Restore levels that restores XP on cancelled enchant added in 0.9
0.9: Fixed some loopholes
- Added:
- guard against combining like-enchanted items in anvil to get disallowed enchant level
- guard against combining already-enchanted item with low-level book to get illegal enchant level
- fail-safe check to prevent picking up illegal item out of anvil result slot
- issues new attempted3 server log that user "almost took result of" disallowed anvil
- because you have to try pretty hard (most of the time) to get this to happen, you might want to punish repeat offenders
- this is because Bukkit sometimes doesn't provide, or loses, the placement inventoryClickEvent (see Caveats below) from client->server
- when undoing the anvil action, the two crafting ingredients are placed back into the anvil, and the illegal item deleted.
- BUT, experience is not currently returned.
- you may like this, to keep as "punishment" for trying to cut corners
- but rarely, the first time you place an item it may not get caught by normal checks so people might still complain.
- issues new attempted3 server log that user "almost took result of" disallowed anvil
0.8: More features!
- Added: guards against world-generated items (like fishing, or mobs)
- checks items you pick up, and either you cannot or removes the restricted enchant(s).
- by default, removes the restricted enchants. Note that the item may lose all enchants
- or set Stop pickup to true and you won't even be able to pick it up.
- recommend this if you have some players with disallowed or multiple permissions; they can take the item
- has built-in restriction on messaging to prevent repeats, but
- if player sits on top of the item, he will be given a chat message every 2 seconds
- Also silently checks spawned/dropped items as they appear, modifying if Stop pickup is NOT set
- checks items you pick up, and either you cannot or removes the restricted enchant(s).
- Changed:
- disallowed enchants will not be completely removed, but reduced to highest allowed level
- XP returned is calculated proportionally at the enchant table.
- if disallowed level is 1, enchant will be removed
- I have ideas to fix this, but wish to get this version out now as it may take time.
- disallowed enchants will not be completely removed, but reduced to highest allowed level
0.7: More features
- Added:
- more "ALL_" item super-item types. See listing here.
- Changed:
- XP return algorithm more generous, and proportional to the entire enchantment operation
- message to users informs them of returned XP.
0.6: further features
- Added:
- "Disallowed enchants" works on anvils
- "ALL" disallowed enchantment now configurable.
0.5: Added "Disallowed enchants" feature
- Not yet working on anvils
0.3: Included default languages/lang-eng.yml
0.2:
- Removed : some debug messages to console.
first release
Fixed in 1.0: Sometimes able, with enough attempts, to get anvil enchant with blocked enchant to be allowed. When picking up that item, effect is undone except for XP expended is not returned.