Prerequisites
- Spigot/Paper development environment
- Maven or Gradle build system
- SunLicense API credentials
- Your product ID and license key
Integration steps
1. Add the repository and dependency
For Maven (pom.xml):
2. Create a license manager class
3. Implement it in your main plugin class
4. Create the default config
Createconfig.yml in your plugin’s resources folder:
5. License command (optional)
Common issues and solutions
- Plugin won’t enable
- Check the license key is properly configured
- Verify the product ID matches
- Check server connectivity to the license API
- License validation fails
- Confirm the license key hasn’t expired
- Check the HWID matches
- Verify IP restrictions
- Configuration issues
- Ensure
config.ymlis properly formatted - Check all required fields are present
- Verify encoding is UTF-8
- Ensure