Skip to main content

🖥️ API usage

Use the nLogin API to develop other plugins.

Adding the API

Maven:

<repositories>
<repository>
<id>nickuc-repo</id>
<url>https://repo.nickuc.com/maven-releases/</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>com.nickuc.login</groupId>
<artifactId>api</artifactId>
<version>10.4</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.nickuc.login</groupId>
<artifactId>api</artifactId>
<version>10.4</version>
<scope>javadocs</scope>
</dependency>
</dependencies>

Gradle:

repositories {
maven {
url = uri('https://repo.nickuc.com/maven-releases/')
}
}

dependencies {
compileOnly('com.nickuc.login:api:10.4')
}

JavaDocs

JavaDocs

Access JavaDocs

Web Apps

Click here for more information

Events

Event Information:
  • Authentication events can be asynchronous. To use methods restricted to the "Server thread" (Bukkit), you'll need to run a synchronized task.
  • There are events with the same class name but different packages. If you are using Bukkit, for example, always import from com.nickuc.login.api.event.bukkit [...].