Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

Importing API

KarmaDev edited this page Jul 17, 2021 · 1 revision

How to import API

As almost all the plugins in spigotmc, LockLogin has an API, a little bit hard to start with, but it will be familiar for you as it is very similar to bukkit/bungee API.

To start, add the dependency to your pom.xml or gradle, the dependency is hosted at maven repo, most of the IDEs already search in that repository by default, so you don't have to add it to your repositories

API
Maven Central
COMMONS
Maven Central

Maven

<dependencies>
    <dependency>
        <groupId>eu.locklogin</groupId>
        <artifactId>LockLogin-API</artifactId>
        <version>{api-version}</version>
        <scope>provided</scope>
    </dependency>
    <!-- OPTIONAL -->
    <dependency>
        <groupId>eu.locklogin</groupId>
        <artifactId>LockLogin-common</artifactId>
        <version>{common-version}</version>
        <scope>provided</scope>
    </dependency>
</dependencies>

Gradle

dependencies {
    compile "eu.locklogin:LockLogin-API:{api-version}"
    
    //OPTIONAL
    compile "eu.locklogin:LockLogin-common:{common-version}"
}