Skip to content

mani1232/KPacketInventory

Repository files navigation

KPacketInventory


API that will help you easily create GUI menus based on PacketEvents and written 100% in Kotlin

Installation

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}")

Gradle (Kotlin)

repositories {
    mavenCentral()
    maven("https://repo.worldmandia.cc/releases")
    // Snapshots Repository (Optional):
    maven("https://repo.worldmandia.cc/snapshots")
}

dependencies {
    implementation("cc.worldmandia:kpi-api:{version}")
}

Gradle (Groovy)

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}")
}

Maven

Repository:
<repository>
    <id>snapshots-repo</id>
    <url>https://repo.worldmandia.cc/releases</url>
    <releases>
        <enabled>true</enabled>
    </releases>
    <snapshots>
        <enabled>false</enabled>
    </snapshots>
</repository>
Snapshots Repository (Optional):
<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>

FAQ

Direct java support?

  • No, we use some kotlin features, but you can create wrapper with builders for support java

Thread safety?

  • Maybe...