HomeJavaModsClick2Enchant
Click2Enchant
[​IMG]
Tired of having to use up your precious levels at an anvil, just to use your enchantment books? Or simply just want instant enchantments? Well then this is the plugin for you!

This plugin enables players to click and drag an enchantment book onto an item, and if the enchantment is the right kind (you don't want lure 3 on a sword ;)) then it will instantly enchant it! As well as being a nice little feature for donors, this is also really great for PVP as players can now easily use books that they receive during a fight.

To set up this plugin, simply drop the Click2Enchant.jar file into your servers plugins folder then restart your server and away you go!

Features:
Supports the EnchantmentAPI custom enchantment plugin by Eniripsa96
Now supports the
EnchantPlus custom enchantment plugin by @NeuroZap
Now supports the zEnchantments custom enchantment plugin by @ZedlyDev - Check it out! :)


Permissions:


Commands:


Plugin in action:
[​IMG]
*NOTE: You pick the book up and rightclick it onto the item to make it enchant.


Todo list:

I need more ideas for this plugin so let me know if you can think of something! :)

Spanish Video Review:



Default Configuration File:
Spoiler: Default Config
Code (Text):

#Should enchantments add up to levels above that possible in vanilla?
#An example of this is adding a power V book and a power III book to a bow to get a power VIII bow
Add_Unsafe_Enchantments: true

#Should the plugin alert a player when they don't have enough levels to enchant an item?
Send_Level_Messages: true

#Should failure chances be added to the books lore? (chances will be added upon enchanting)
Add_Chance_To_Lore: false

#What colors should the lore messages be? (This is only used if the Add_Chance_To_Lore setting is true)
#Options: AQUA, BLACK, BLUE, DARK_AQUA, DARK_BLUE, DARK_GREEN, DARK_PURPLE, DARK_RED, GOLD, GRAY, GREEN, LIGHT_PURPLE, MAGIC, RED, WHITE, YELLOW
Lore_Failure_Color: "DARK_PURPLE"
Lore_Success_Color: "DARK_PURPLE"

#What percentage out of 100 should the maximum failure chance be? (This is only used if the Add_Chance_To_Lore setting is true)
#The chance added to the books lore will be a random value between the maximum and minimum failure chance values.
Maximum_Failure_Chance: 20

#What percentage out of 100 should the minimum failure chance be? (This is only used if the Add_Chance_To_Lore setting is true)
Minimum_Failure_Chance: 20

#What percentage out of 100 should the chance be that an instant enchantment fails?
#NOTE: This is only used if the Add_Chance_To_Lore setting is false, otherwise the chance is calculated using the maximum and minimum and added to the lore.
Failure_Chance: 10

#What message should be sent when the book fails to enchant? (Set to: "none" to disable the message)
Failure_Message: "&4Oh no! Your enchantment book has vanished!"

#Delete Item upon faliure? (eg. if enchanting a sword fails, the sword would also get deleted not just the book)
Delete_Item_On_Fail: false

#Should the players inventory close upon enchant failure (can be used to make sure player sees failure message)
Close_Invent_On_Fail: false

#List of commands to execute upon enchantment failure - Insert %p for the players name
Failure_Commands:
- ""

#List of commands to execute upon enchantment success - Insert %p for the players name
Success_Commands:
- ""
 

L icense:
You are not allowed to decompile this plugin unless you really, really want to.
You are
not allowed to change the Source-Code unless you have a good idea.
You are not authorized sell or distribute this plugin because I'm already doing that.
You are only allowed to use this plugin for your server or anyone else's.

If you run into any issues at all don't hesitate to contact me and I'll try to get back to you as quickly as possible.

Please don't leave a negative review on my plugin based on any issues/bugs you've had, its hard to test for everything and it would be more helpful to everyone if you contact me and let me fix it! :)


If I've helped you and you would like to show your appreciation, you may buy me a coffee because that's what I love.

[​IMG]

A big thanks to the following user(s) for the coffee's:

*PM me if you want your name put up :)

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Click2Enchant is a free Minecraft Java mod. Compatible with Minecraft 1.10. Downloaded 14,041 times (via Spigot). Download it and open it directly in the game.

Explore more