Skip to main content
The following guide will show you how to implement our API in other platforms, like Minestom or standalone. Our API includes the ControllerApi and the PlayerApi class. The ControllerApi is used to interact with SimpleCloud’s groups, servers, and more, while the PlayerApi is used to interact with players.

Dependencies

First, we need to add the dependencies to your build.gradle or pom.xml:
repositories {
    maven("https://repo.simplecloud.app/snapshots")
    maven("https://buf.build/gen/maven")
}

dependencies {
    implementation("org.jetbrains.kotlin:kotlin-stdlib:2.1.20")
    implementation("org.jetbrains.kotlin:kotlin-reflect:2.1.20")
    implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.1")
    implementation("app.simplecloud.controller:controller-api:LATEST")
    implementation("app.simplecloud.droplet.player:player-api:LATEST")
}

Basic Usage

Now that you have the dependencies, you can use the SimpleCloud API in your project.
import app.simplecloud.controller.api.ControllerApi

suspend fun main() {
    val controllerApi = ControllerApi.createCoroutineApi()
    val groups = controllerApi.getGroups().getAllGroups()
    println(groups)
}