An easy to use api for Kotlin interacting with NameMC
import live.einfachgustaf.namemc.NameMcApiImpl
import live.einfachgustaf.namemc.api.NameMcApi
import java.util.*
suspend fun main() {
NameMcApi.setGlobalInstance(NameMcApiImpl())
NameMcApi.getInstance().getServerByAddress("einfachgustaf.live").getLikes().forEach {
println(it.getUuid())
}
val hasPlayerLiked = NameMcApi.getInstance().getServerByAddress("einfachgustaf.live")
.hasPlayerLiked(UUID.fromString("72ccbc0c-a35f-4492-2450-971a26607ee0"))
println(hasPlayerLiked)
}
repositories {
maven("https://jitpack.io")
}
dependencies {
implementation("com.github.EinfachGustaf:namemc-api-kt:Tag")
}