Repository
How to add the Worlds API to your project.
Edit on GitHubAdd our Repository
To start, add our repository to your project:
<repository>
<id>thenextlvl-releases</id>
<name>TheNextLvl</name>
<url>https://repo.thenextlvl.net/releases</url>
</repository>
maven {
name = "thenextlvlReleases"
url = uri("https://repo.thenextlvl.net/releases")
}
maven {
name "thenextlvlReleases"
url "https://repo.thenextlvl.net/releases"
}
resolvers +=
"thenextlvl-releases"
at "https://repo.thenextlvl.net/releases"
Add the Worlds API
Add Worlds' API codebase as a dependency:
<dependency>
<groupId>net.thenextlvl</groupId>
<artifactId>worlds</artifactId>
<version>3.2.2</version>
</dependency>
implementation("net.thenextlvl:worlds:3.2.2")
implementation "net.thenextlvl:worlds:3.2.2"
"net.thenextlvl" %% "worlds" %% "3.2.2"
Note
PerWorlds is provided in Worlds since 2.2.0 so you don't need to include it as a dependency in newer versions.
The version of the Worlds API is the same as the version of the Worlds plugin.
You can find all versions on the repository.
Add the PerWorlds API
If you only want to use the PerWorlds API, you can add its dependency directly:
<dependency>
<groupId>net.thenextlvl</groupId>
<artifactId>per-worlds</artifactId>
<version>0.2.4</version>
</dependency>
implementation("net.thenextlvl:per-worlds:0.2.4")
implementation "net.thenextlvl:per-worlds:0.2.4"
"net.thenextlvl" %% "per-worlds" %% "0.2.4"
Note
The version of the PerWorlds API is the same as the version of the PerWorlds plugin.
You can find all versions on the repository.
Last updated on