Minecraft Mods

SunLicense Integration Guide for Minecraft Mods

Prerequisites

  • Forge/Fabric mod development environment

  • Gradle

  • SunLicense API credentials

Integration Steps

1. Add Repository and Dependency

In your build.gradle:

repositories {
    maven {
        url "https://repo.hapangama.com/releases"
    }
}

dependencies {
    implementation 'com.hapangama:SunLicenseAPI:1.0.3'
}

2. Create License Manager

3. Implement in Mod Main Class

Best Practices

  1. Mod Loading

    • Validate before initializing features

    • Provide clear feedback to users

    • Handle offline mode gracefully

  2. Feature Management

    • Graceful feature disabling

    • Clear user communication

    • Cache validation results

Common Issues

  1. Mod Loading Failures

    • Verify license key

    • Check network connectivity

    • Confirm dependency inclusion

  2. Runtime Problems

    • Monitor mod logs

    • Check for network issues

    • Verify license status

Last updated