API
Information about the API for Custom Enchants+

How to utilize CustomEnchants+'s API

All API methods can be found HERE
Within your plugin.yml add
1
softdepend: [CustomEnchantsPlus]
Copied!
If you want CustomEnchants+ to be absolutely necessary to your plugin do this instead
1
depend: [CustomEnchantsPlus]
Copied!

Add CustomEnchants+ to your Java Project as an external library

Utilize the API by using the static methods within CustomEnchantsAPI

Example:
1
CustomEnchantsAPI.openGui(player, CustomEnchantGui.ENCHANTER);
Copied!

Obtaining a specific custom enchantment

Example:
1
Enchantment enchant = CustomEnchantment.EXPLOSIVE_ARROW;
Copied!

Obtaining a scroll

Example:
1
Scroll scroll = Scrolls.ENCHANTMENT_REMOVAL;
Copied!