API that will help you easily create GUI menus based on PacketEvents and written 100% in Kotlin
Replace {version}
with the latest version number.
For Snapshots replace {version}
with {branch}-SNAPSHOT
e.g: feature-amazing-thing-SNAPSHOT
for the branch feature/amazing-thing
For Snapshots for the branch master
replace {version}
with {nextPlannedApiVersion}-SNAPSHOT
(see nextPlannedApiVersion
in gradle.properties
)
Per platform feature replace {platform}
to your platform, like bukkit
implementation("cc.worldmandia:kpi-{platform}:{version}")
repositories {
mavenCentral()
maven("https://repo.worldmandia.cc/releases")
// Snapshots Repository (Optional):
maven("https://repo.worldmandia.cc/snapshots")
}
dependencies {
implementation("cc.worldmandia:kpi-api:{version}")
}
repositories {
mavenCentral()
maven {
url "https://repo.worldmandia.cc/releases"
}
// Snapshots Repository (Optional):
maven {
url "https://repo.worldmandia.cc/snapshots"
}
}
dependencies {
implementation("cc.worldmandia:kpi-api:{version}")
}
<repository>
<id>snapshots-repo</id>
<url>https://repo.worldmandia.cc/releases</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>snapshots-repo</id>
<url>https://repo.worldmandia.cc/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<dependency>
<groupId>cc.worldmandia</groupId>
<artifactId>kpi-api</artifactId>
<version>{version}</version>
</dependency>
Direct java support?
- No, we use some kotlin features, but you can create wrapper with builders for support java
Thread safety?
- Maybe...