EnchantLimiter
Some servers wish to limit the enchants that are available to players. This plugin allows them to.
Supported Enchantments:
Swords:
- Sharpness
- Fire Aspect
- Knockback
Armour:
- Protection
- Fire Protection
- Projectile Protection
- Thorns
Bows:
- Power
- Flame
- Punch
Functionality
- If there is an existing item with an enchant which is not allowed with this plugin, it will be scaled down.
- Players will not be able to enchant an item above the specified levels in the config file
Unfortunately there is no API functionality to disable combining on anvils. However once the items are made they will be scaled down, so no worries there.
To do
- Add functionality for other enchantments
- Ensure the configuration reloading command actually works.
- Bug - if too many enchants are disabled and someone tries to enchant, it will sometimes not enchant an item but take the levels of XP.
I love you. :D
This works perfectly. Thanks for such an awesome plugin.
I'm doing the same as Netherfoam below me, I'd like the options to limit the remaining enchantments. Could that be done?
@guyag
Looking good so far. What about limiting bane and smite too? I'm working on a super hard PvE server and I'd like to limit all enchants.
@bobtch
Good to know :) Let me know if I can help further.
Deleted EnchantSign and started using the Essentials sign system instead. Now I have no errors with EnchantLimiter whatsoever.
@guyag
Alright, that's kind of a hard task, but it's doable. The problem is that I'm not sure what caused EnchantSign to break down in the first place. My suggestion is that it has something to do with the 1.4.7 update, even though it's very small. As some players updated their client and others remained on 1.4.6 - the Enchant Sign started bugging out, allowing users to apply any enchant to any enchantable item. This resulted in sword with 15 enchants on them, for example. Then your plugin came in - with it I managed to fix this mess, because I'm already in deep waters and it's too late to completely reverse my enchanting system. Now, the error appears after enchants are applied and (I think) removed when they end up being the wrong ones. So whenever some of my (infant) players decide to spam the signs and apply the incorrect enchants - your plugin starts reverting their actions and eventually producing this error.
(http://pastebin.com/ueW3GAVm here's more of it)
The question is if your plugin has any fault at all. If EnchantSign is actually causing all this it might be impossible for you to do anything. I don't understand java that well to be able to say.
@bobtch
Can you repeat the issue, and tell me the circumstances leading up to the error? It's very difficult to fix without being able to reproduce it.
@guyag
1.4.6 R0.3 #2591
I forgot to mention yesterday - I am using this along another plugin, called 'EnchantSign'. Usually I have no problems with it, but around the release of 1.4.7 it broke down, allowing players to purchase all enchants available on any weapon/armor/tool. This is where your plugin saved the day, removing unwanted upgrades on the spot. It didn't produce any errors until last night, and I'm positive that it happens as they use the eshop signs.
@bobtch
Please confirm your bukkit version.
Starting getting this error. Great plugin btw, I really love it! Had a ton of trouble with enchants and this is the only app that manages to actually remove restricted enchants from already-enchanted items. I've removed anvil anyways, so that's not a problem, but this error started appearing now and I'm not sure why...
Keep up the good work and thanks again!
@Dommbringer
Yes. Java 6 will no longer be updated after February 2013 - I suggest everyone moves to Java 7.
is this jre7 :(
@guyag
Basically the ones http://dev.bukkit.org/server-mods/enchant-handicap/ does.
Sadly that plugin is no longer updated and does NOT restrict enchants done through the anvil, making it only useful when you entirely disable Anvils (as we have right now)
@Serilum
Kind offer, but it's easy enough to maintain. If people want all enchants added that's not too hard. Will get on to that shortly.
@Joymo
Like what? I can do all I suppose, although that might start getting a little resource intensive.
This is a great replacement for the http://dev.bukkit.org/server-mods/enchant-handicap/ plugin, which is not compatible with Anvils.
But would love to see the other enchants added, as there are more overpowered ones than the ones listed above ;)
@Serilum
That'd be nice.
@guyag
Do you need me to maintain this for you? I could probably add all the enchantments in an hour and resolve any problems if needed.
so stupid....
Aware of an issue where it doesn't work... fixing now.
Regarding bypass permissions - the project is open source so you can do so if you wish. I am not going to add such functionality - I do not want to support servers who wish for such a pay-to-win structure. That is not the intended function of this plugin.