Darrionat Plugins
Discord
SpigotMC
GitHub
Patreon
Search…
Welcome
Plugins
Bans+
Command Cooldown
Custom Enchants+
API
Commands & Permissions
Configuration Files
Custom Blocks
Dependencies
Enchantments
GUIs
Scrolls
Wands
Trivia
PrisonPick
Libraries
PluginLib
Discord Bot
SpigotMC Bot
Links
Discord
GitHub
SpigotMC
Support Me
Patreon
Powered By
GitBook
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!
Plugins - Previous
Custom Enchants+
Next
Commands & Permissions
Last modified
2yr ago
Copy link
Contents
How to utilize CustomEnchants+'s API