Extensions for Kotlin Exposed for Bukkit/Paper
To use this library in your Maven project, simply use the following dependency fragment:
Dependency:
<dependency>
<groupId>com.github.gianttreelp</groupId>
<artifactId>bukkit-exposed-extensions</artifactId>
<version>1.2</version>
<scope>compile</scope>
</dependency>
If you are feeling adventurous, you can also use the latest snapshots. This requires you to setup the Sonatype snapshots repository.
Repository:
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</repository>
class LocationTable: Table("Locations") {
/**
* We are using the uniqueId of the players as the id in the table.
*/
val id = uuid("id").primaryKey()
/**
* The last location of the player.
*/
val lastLocation = location("lastLocation")
}