Prerequisites
- Forge/Fabric mod development environment
- Gradle
- SunLicense API credentials
Integration steps
1. Add the repository and dependency
In yourbuild.gradle:
2. Create a license manager
3. Implement it in your mod’s main class
Best practices
- Mod loading
- Validate before initializing features
- Provide clear feedback to users
- Handle offline mode gracefully
- Feature management
- Graceful feature disabling
- Clear user communication
- Cache validation results
Common issues
- Mod loading failures
- Verify the license key
- Check network connectivity
- Confirm the dependency is included
- Runtime problems
- Monitor mod logs
- Check for network issues
- Verify license status