Anti-Enchant
Anti-Enchant is a Bukkit plugin which allows you to limit or forbid players on your server to use certain enchants on certain items. That's actually about it there is to say about it, it's quite simple! Please, after downloading, proceed to 'How to' page for further instructions.
As of 23rd of November, 2016 this plugin is being updated to the most recent version of Minecraft. Please, standby.
If you feel like donating, please send the PayPal payment to *[email protected]*. Thank you!
Source Code
Latest version: Anti-Enchant 1.5 - January 4, 2015
Installing the plugin
Simply drag and drop the '.jar' file into your 'plugins' directory for your server. Reload (restart) your server, and the plugin should be installed, along with a folder that just appeared, which contains the configuration!
Configuring the plugin
There will be number of lines for each item in the game. Simply tag the item you wish to make not enchantable with 'false', and proceed to save the config, enter the game and use /ae_reload command.
Commands
- '/ae_reload' - reloads the plugin configuration file after it has been modified
- '/ae_unenchant' - disenchants the item the player's currently holding in their hands
- '/ae_table' - spawns an enchanting table with some bookshelves around the player
Permissions
- 'ae.enchantbooks' - allows the group (player) to enchant books
- 'ae.admin' - access to all of the commands of the plugin and access to all enchants
- 'ae.repair' - allows the player (the group) to repair items by anvil
- 'ae.unenchant' - permission to 'ae_unenchant'
@crunchycamsta
@Invaerne
Highly doubt I'll update this anytime soon. Maybe during the summer if I feel like it. Got no time and a paying programming job so this is really just a side project when I'm bored or so...
I actually need this for 1.9 :(
Will this be updated for 1.9? It wipes any level of unbreaking even though i changed the max to 10.
@Azekial07
Will consider this if I get back to my plugin. Currently not doing any changes.
@Lvmby
File is made for 1.8; works with earlier versions but errors WILL appear. Since there's no enchantment of that name, and the plugin continuously tries to run the code for that very enchantment, you end up in errors. Switch to 1.8
@Lvmby
Did you install the Version for 1.7? I think all those errors changed in 1.8.
MY CONSOLE IS BEING SPAMMED BY
[23:57:35 ERROR]: Could not pass event PlayerMoveEvent to AntiEnchant v1.0 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) [spigot-1.7.10-1.8-R0.1-1656.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [spigot-1.7.10-1.8-R0.1-1656.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:509) [spigot-1.7.10-1.8-R0.1-1656.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:494) [spigot-1.7.10-1.8-R0.1-1656.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java:249) [spigot-1.7.10-1.8-R0.1-1656.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at net.minecraft.server.v1_7_R4.PacketPlayInFlying.a(SourceFile:137) [spigot-1.7.10-1.8-R0.1-1656.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at net.minecraft.server.v1_7_R4.PacketPlayInLook.handle(SourceFile:98) [spigot-1.7.10-1.8-R0.1-1656.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:186) [spigot-1.7.10-1.8-R0.1-1656.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at net.minecraft.server.v1_7_R4.ServerConnection.c(ServerConnection.java:81) [spigot-1.7.10-1.8-R0.1-1656.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:734) [spigot-1.7.10-1.8-R0.1-1656.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:289) [spigot-1.7.10-1.8-R0.1-1656.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:584) [spigot-1.7.10-1.8-R0.1-1656.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:490) [spigot-1.7.10-1.8-R0.1-1656.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot-1.7.10-1.8-R0.1-1656.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] Caused by: java.lang.NoSuchFieldError: DEPTH_STRIDER at me.Deaththinius.AntiEnchant.onMoveEnchantments(AntiEnchant.java:943) [?:?] at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source) [?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.7.0_85] at java.lang.reflect.Method.invoke(Method.java:606) [?:1.7.0_85] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:298) [spigot-1.7.10-1.8-R0.1-1656.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] ... 13 more
EVERY TIME SOMEONE NOT OPERATOR MOVES P.s. Why does it say DEPTH_STRIDER even though it's 1.7.10 not 1.8?
Either fix this problem or tell me how to disable AntiEnchant's console output so this doesnt keep spamming.
Server Type: Spigot Version: Spigot-1.7.10-1.8-R0.1-1656 Plugin List:
AdvancedBan AntiEnchant ArmorsetEffects Banitem BottledExp ChatControl Classes CrateReloaded CustomHelp Enchant Limiter Essentials Factions Groupmanager HCFEssentials HolographicDisplays KoTH Multiverse-Core OreGenerator PingPlayer PluginMetrics (Not a real plugin) Shopkeepers Signedit sMobs TagSpawnProtection UltraCommand update (Not a real plugin) Updater (Not a real plugin) Vault Warpportals Worldboarder Worldedit worldguard
Halp Please
I've just installed your plugin on my server and I gotta say I love what it can do, but I am having a problem. I also have a suggestion.
Problem:
I've set Water_worker and Fishing_Rod to true, yet lure and luck are being removed from the items. Also, Water_Worker_Max_Level is set to 20, because we use overclocked enchants on the server. The only enchant I have set to false is knockback.
Suggestion:
Default the config to true for everything, and set the max levels to 10.
Why? Installing this plugin on a fresh map is no big deal but when you install it during the middle of a map means a lot people will lose their enchants, if they pull out that weapon or tool. By having everything defaulted to true and 10, you can go into the config, without any worries, and adjust what enchants you want and don't want.
<<reply 2609472="">>
...what... xd?
This plugin can protect animals in town ?
<<reply 2594969="">>
I'll look into it asap, real busy currently, sorry :/
@levisn1
Me too! It's so annoying! I think it may be because he misspelled Protection_Environmental as Protection_Enviromental (Enviro wrong - Environ correct) EDIT: Would you mind checking if you did so wrong? Protection just seem to stay default while everything else works.
yes.. Monster Eggs can use 1.5 Fix then version 1.5 Bug Deny Thank you My server Version spigot-1.8.3
@mohannadi
The plugin completely removes enchants on items, so yes, when a player receives the enchanted item, it will be automatically disenchanted.
I am having an issue where I would give an enchanted item to someone who lets say donated and he loses the enchant on the item. Does this plugin has a functionality like that and is there a way to disable it and keep stopping them from enchanting?
@Locorunner21
I'll look into this, but are you sure you're running the appropriate A-E version with the MC version?
Well, it's an event, nothing I can do there :/, it's there to check each and every player's actions - most of the plugins contain at least one of those events
Possible update fix
I've just realised Anti-Enchant is firing almost every time someone puts down a block. Obviously this isn't ideal for server-side lag, but I guess it gets the job done. I've also been experiencing some error caused by java.lang.NoSuchFieldError: DEPTH_STRIDER
I have all enchanting switched off, so I haven't found this problem to hinder or stop the purpose of your plugin, but obviously it is coming up with this error each time I put a block down. So something isn't right.
@EricAutopsy
Hello, and thank you :). Sadly enough, I will not make it compatable with that plugin, as it has not been updated for longer than a year now. Sorry.
Hello Lovely plugin! But it interfers with Courier by erasing the text on the enchanted maps/letters. Is there any way to fix this?
Courier link: dev.bukkit.org/bukkit-plugins/courier/
@levisn1
Uploaded a new version with temporary solution. Thanks for reporting!