Minecraft Plugins

SunLicense Integration Guide for Minecraft Plugins

Prerequisites

  • Spigot/Paper development environment

  • Maven or Gradle build system

  • SunLicense API credentials

  • Your product ID and license key

Integration Steps

1. Add Repository and Dependency

For Maven (plugin.xml):

<repositories>
    <repository>
        <id>sundevs</id>
        <name>Sundevs Repository</name>
        <url>https://repo.hapangama.com/releases</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>com.hapangama</groupId>
        <artifactId>SunLicenseAPI</artifactId>
        <version>1.0.3</version>
    </dependency>
</dependencies>

2. Create License Manager Class

3. Implement in Main Plugin Class

4. Create Default Config

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

5. License Command Implementation (Optional)

Common Issues and Solutions

  1. Plugin Won't Enable

    • Check if license key is properly configured

    • Verify product ID matches

    • Check server connectivity to license API

  2. License Validation Fails

    • Confirm license key hasn't expired

    • Check if HWID matches

    • Verify IP restrictions

  3. Configuration Issues

    • Ensure config.yml is properly formatted

    • Check if all required fields are present

    • Verify encoding is UTF-8

Need additional help? Contact support or check the Java API Documentation for more details.

Last updated