A P I

Adding the Dependency

Maven

<dependency>
    <groupId>com.stelliusstudio</groupId>
    <artifactId>MythicEnchants</artifactId>
    <version>1.2.0</version>
    <scope>provided</scope>
</dependency>

Gradle (Kotlin DSL)

dependencies {
    compileOnly("com.stelliusstudio:MythicEnchants:1.2.0")
}

Gradle (Groovy)

dependencies {
    compileOnly 'com.stelliusstudio:MythicEnchants:1.2.0'
}

plugin.yml Dependency

depend: [MythicEnchants]
# Or soft dependency
softdepend: [MythicEnchants]

Accessing the API

import com.stelliusstudio.mythicenchants.MythicEnchants;
import com.stelliusstudio.mythicenchants.api.EnchantmentAPI;

public class MyPlugin extends JavaPlugin {
    
    private EnchantmentAPI api;
    
    @Override
    public void onEnable() {
        // Check if MythicEnchants is loaded
        if (getServer().getPluginManager().getPlugin("MythicEnchants") == null) {
            getLogger().severe("MythicEnchants not found!");
            getServer().getPluginManager().disablePlugin(this);
            return;
        }
        
        // Get API instance
        api = MythicEnchants.getAPI();
        getLogger().info("Successfully hooked into MythicEnchants!");
    }
}
Updated Aug 19, 2026