A simple yet efficient API wrapper for the HiveMC Minecraft Server 100% written in Kotlin.
Javadoc: Here
Hive API Doc: Here
Gradle:
repositories {
jcenter()
}
dependencies {
compile 'tk.roccodev.hiveapi:HiveAPIKt:1.2'
}
Maven:
<repositories>
<repository>
<id>jcenter</id>
<url>https://jcenter.bintray.com/</url>
</repository>
</repositories>
<dependency>
<groupId>tk.roccodev.hiveapi</groupId>
<artifactId>HiveAPIKt</artifactId>
<version>1.2</version>
</dependency>
For more information, check the wiki.
Stats are fetched through GameStats
objects, or the HivePlayer
object if you want global stats.
You can find a player either by name or by UUID.
BED bedwarsStats = new BED("RoccoDev");
return bedwarsStats.getKills();
Or, if you're using Kotlin:
val bedwarsStats: BED = BED("RoccoDev");
return bedwarsStats.kills;
If you would like to contribute, feel free to fork this project and open a pull request. Here's the complete list of dependencies (probably a more updated version is inside build.gradle):
- Klaxon for parsing JSON
Dependency management is done through Gradle.