Darrionat Plugins
  • Welcome
  • Plugins
    • Bans+
      • Commands & Permissions
      • Configuration Files
      • GUIs
      • MySQL
      • Trivia
    • Command Cooldown
      • Commands & Permissions
      • Configuration Files
        • cooldowns.yml
        • config.yml
        • messages.yml
      • MySQL
      • Trivia
    • Custom Enchants+
      • API
      • Commands & Permissions
      • Configuration Files
        • config.yml
        • enchants.yml
        • lores.yml
        • messages.yml
      • Custom Blocks
      • Dependencies
      • Enchantments
      • GUIs
      • Scrolls
      • Wands
      • Trivia
    • PrisonPick
      • Autosell
      • Commands & Permissions
      • Configuration Files
        • autosell.yml
        • config.yml
        • enchants.yml
        • messages.yml
      • Dependencies
      • Enchantments
      • GUIs
      • Inventory Management
      • Placeholders
      • Saving Data
  • Libraries
    • PluginLib
      • Creating Your Plugin
      • Commands
      • Configs
      • ErrorHandler
      • Gui
  • Discord Bot
    • SpigotMC Bot
      • Commands
  • Links
    • Discord
    • GitHub
    • SpigotMC
  • Support Me
    • Patreon
Powered by GitBook
On this page

Was this helpful?

  1. Plugins
  2. Custom Enchants+

API

Information about the API for Custom Enchants+

PreviousCustom Enchants+NextCommands & Permissions

Last updated 5 years ago

Was this helpful?

How to utilize CustomEnchants+'s API

All API methods can be found

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;
HERE