Plugin API
Download API at: https://www.spigotmc.org/resources/advancedenchantments-api.76819/
AEAPI class functions:
AEAPI
Applying custom enchants is simple. Do remember, that the
AEAPI.applyEnchant
method also returns a modified ItemStack, which you will need to override with your current ItemStack object.Example:
ItemStack item = your item;
item = AEAPI.applyEnchant("enchantName", enchantLevel, item);
Last modified 1yr ago