Skip to main content

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

Create config.yml in your plugin’s resources folder:

5. License command (optional)

Common issues and solutions

  1. Plugin won’t enable
    • Check the license key is properly configured
    • Verify the product ID matches
    • Check server connectivity to the license API
  2. License validation fails
    • Confirm the license key hasn’t expired
    • Check the HWID matches
    • Verify IP restrictions
  3. Configuration issues
    • Ensure config.yml is properly formatted
    • Check all required fields are present
    • Verify encoding is UTF-8
Need more help? Contact support or check the Java API documentation.