Skip to main content

Prerequisites

  • Forge/Fabric mod development environment
  • Gradle
  • SunLicense API credentials

Integration steps

1. Add the repository and dependency

In your build.gradle:

2. Create a license manager

3. Implement it in your mod’s 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 the license key
    • Check network connectivity
    • Confirm the dependency is included
  2. Runtime problems
    • Monitor mod logs
    • Check for network issues
    • Verify license status