Skip to content

roccodev/HiveAPIKt

Repository files navigation

Build Status Codacy Badge Download

HiveAPIKt - A HiveMC API wrapper written in Kotlin

A simple yet efficient API wrapper for the HiveMC Minecraft Server 100% written in Kotlin.

Javadoc: Here
Hive API Doc: Here

Add as a dependency

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>

Examples

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;

Dependencies & Contributing

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):

Dependency management is done through Gradle.