/exposed-bukkit-extensions

Extensions for Kotlin Exposed for Bukkit/Paper

Primary LanguageKotlinGNU General Public License v3.0GPL-3.0

exposed-bukkit-extensions

GitHub issues GitHub forks GitHub stars GitHub license Build Status

Known Vulnerabilities codebeat badge Codacy Badge

Extensions for Kotlin Exposed for Bukkit/Paper

Use in your project

Maven

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>

Examples

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")
}