Server Software

SunLicense Integration Guide for Minecraft Server Software

Prerequisites

  • Java Development Environment

  • Maven/Gradle

  • Your Minecraft server project

  • SunLicense API credentials

Integration Steps

1. Add Dependencies

Add this to your pom.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 Validator

3. Implement in Server Startup

Best Practices

  1. Startup Validation

    • Validate license before server initialization

    • Implement graceful shutdown on validation failure

    • Log validation status

  2. Regular Validation

    • Implement periodic checks

    • Handle network issues gracefully

    • Cache validation results

  3. Error Handling

    • Clear error messages

    • Proper logging

    • Graceful shutdown procedures

Troubleshooting

  1. Startup Failures

    • Check license key validity

    • Verify network connectivity

    • Confirm product ID

  2. Runtime Issues

    • Monitor validation logs

    • Check for network problems

    • Verify license hasn't expired

Last updated