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
softdepend: [CustomEnchantsPlus]
If you want CustomEnchants+ to be absolutely necessary to your plugin do this instead
depend: [CustomEnchantsPlus]

Add CustomEnchants+ to your Java Project as an external library

Utilize the API by using the static methods within CustomEnchantsAPI

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

Obtaining a specific custom enchantment

Example:
Enchantment enchant = CustomEnchantment.EXPLOSIVE_ARROW;

Obtaining a scroll

Example:
Scroll scroll = Scrolls.ENCHANTMENT_REMOVAL;
Copy link
On this page
How to utilize CustomEnchants+'s API