Simple Minecraft Server pinger
Currently only with support for Java Edition servers
Original project - https://github.com/py-mine/mcstatus
Minecraft Java Edition Server Protocol - https://wiki.vg/Protocol
import com.t895.mcstatuskt.JavaServer
import com.t895.mcstatuskt.Status
fun main() {
lateinit var status: Status
runBlocking {
JavaServer(
address = "127.0.0.1",
port = 25565,
timeoutMs = 15000,
).use {
it.connect()
status = it.status()
}
}
}
- Run
./gradlew :shared:assembleRelease
- Output:
/shared/build/outputs/aar/shared-release.aar
- Run
./gradlew :shared:jvmJar
- Output:
/shared/build/libs/shared-jvm-1.0.jar
- Run
./gradlew :shared:linkReleaseFrameworkIosArm64
- Output:
/shared/build/bin/iosArm64/releaseFramework/shared.framework
- Run
./gradlew :shared:linkReleaseFrameworkMacosArm64
- Output:
/shared/build/bin/macosArm64/releaseFramework/shared.framework
- Run
./gradlew :shared:linkReleaseStaticLinuxX64
- Output:
/shared/build/bin/linuxX64/releaseStatic/libshared.a