AnvilControl
AnvilControl
AnvilControl blocks stacks that are stacked over the standard stack size created by using stack plugins or the give command. Additionally it offers some features to block the placing, using or breaking of anvils and the ability to disable the transferring of enchantments to other tools/weapons/armor or to cap the transferred enchantments to an strength.
Lore
To use this features the player needs the appropriate permission (refer to "2.3. Permissions").
Add Lore to an item
In order to add a line of text as lore to an item simply write "@loreadd text" in the name field.
If you wan't too add another line just repeat it.
Clear Lore of an item
If you wan't to clear it's lore just use "@loreclear" in the name field
Configuration
On the first run of this Plugin it will create the AnvilControl directory containing an config.cfg
Language
Set the language field field in the config.cfg to your preferred language possible are
- Version 1.1.0 and above
- Version 1.0.2 and lower
- 'de' for german
- 'en' for english
- 'kr' for Korean (thanks to ZwingGX for the translation)
If you want to add additional languages just copy a file in the AnvilControl/lang/ directory translate the content and rename it.
If you want that minecraft uses the localized enchantment names use as file name the same as it uses in the lang directory inside of the craftbukkit.jar.
I'd add additional languages if some one could translate one of the files and post its content in a ticket.
If you find some spelling mistakes feel free to leave a comment or create a ticket.
Manage Enchantments
Version 1.2.0 and above
Version 1.1.0 and lower
Permissions
- anvilcontrol.use
- controls if you can open an anvil
- anvilcontrol.place
- controls if you are able to place an anvil
- anvilcontrol.break
- controls if you are able to destroy an anvil it can still be broken by using it
- anvilcontrol.allowrename
- controls if you are able to rename items
- anvilcontrol.allowlore
- allows you to add lore to an item or clear it
Version 1.2.0 and above:
- anvilcontrol.check
- allows you to use the command to check disabled and caped enchantments
- anvilcontrol.config
- allows you to use the config command
Version 1.2.3 and above:
- anvilcontrol.repair
- allows you to repair items (enables second anvil-slot for items beside the enchantment-book)
Change-log
- Version 1.3.5
- Version 1.3.4
- Some code improvements
- Fixed missing language files in Version 1.3.3
- Version 1.3.3
- Fixed some problems which caused the disabling of dragging items in workbenches etc. (but it is still disabled on anvils on purpose until I found time to make modifications to get dragging to work and it isn't passing the limitations).
- Version 1.3.2
- Pls use version 1.2.6 or 1.3.1 if you are still using 1.5.X (last one only if you don't want to restrict renaming)
- Fixed the rename bug from version 1.3.0 and 1.3.1
- Updated code for 1.6.2
- Version 1.3.1
- Changed some code for Java 6 support
- Version 1.3.0
- Recompiled for 1.5.2
- Some code improvements
- Version 1.2.6
- Another bugfix
- Version 1.2.5
- Fixed a problem related to right clicks
- Version 1.2.4
- Fixed a problem with the repair permission
- Version 1.2.3.1
- Added new ko_KR.lang file (ZwingGX thx again ^.^)
- Version 1.2.3
- Added repair permission "anvilcontrol.repair"
- Version 1.2.2
- Added check if combining two items result in an enchantment level over the max-level
- Version 1.2.1
- Fixed config command for enchantment names containing spaces just surround it with ' " '
- Version 1.2.0
- Added config command
- Added command to test deactivated and caped enchants
- Had to change the format of the config file sorry :-(
- Fixed a bug with Shift-Click
- Version 1.1.0
- Lang-System rewritten
- Version 1.0.2
- Added Korean translation
- Version 1.0.1
- Fixed English translation for
- use
- place
- break
- Fixed English translation for
- Version 1.0.0
- Initial release
Hey! There is a bug with "Shift" Key ! After renaming an item, press Shift and Left Click of an item. I am using Spigot 1.5.1 r0.3 build 830. Please, fix it :)
tested version 1.2.5 on craftbukkit 1.5.1 R0.1 (latest development build #2717) should work fine (even the new drag mechanisms)
Thanks for the translatetions!
@Jojo_the_big
Here new translate file ;) https://dl.dropbox.com/u/78671707/ko_KR.lang
@ZwingGX
Added it sorry for the long waiting time :-)
could you translate the new strings for the ko_KR.lang file?
@IamMcDylan
no
With this plugin am I able to disable the cost of levels?
@Jojo_the_big
Thanks! :D Gonna check it now!
@jhs232 Just updated the plugin now it should work.
@Jojo_the_big
I just wanted it so max enchantment through anvil is: Sharpness IV, Protection III, Power IV. But thanks for your feedback. This plugin is amazing when it comes to restricting anvils, and I do hope that you will fix the issue (if there is any?). Thank you for reading, Jhs232
@jhs232
I take a lock at this could be that I forgotten the case of two same enchantments. Meanwhile you can simply drop the max to II for Protection and IV for Sharpness and Power.
I can't seem to make it so you can't get Protection IV, Sharpness V and Power V through an anvil. This is my config: http://pastie.org/6365557 In the game it even says: "List of the level restricted enchantments for the anvil: Protection III Sharpness IV Power IV. Either I am doing something very wrong (could you in that case explain me what I should do) or your plugin is not working correctly. The issue is: you can combine (for example) 2 Protection III chestplates in an anvil to obtain Protection IV, which you shouldn't be able to do.
Just found some time to rewrite the lang selection. Now it should be possible to translate it yourself.
@ZwingGX
could try too add a repair permission but i don't get the point in it. Furthermore if you can't repair you can't transfer enchants from one item to an other the output would be repaired. Also you just can repair it by combining two same items in the crafting grind.
Thank you for update :) Could you add Repair permission ?
@ZwingGX
There isn't one at the moment. Its just one entry in the config.yml
were you can select de or en. Probably I'll add one after my exams.
Where is Language config file? :)
Nice work!
Looks good :)