Spikot is a Kotlin library to make Spigot development easier
Using Spikot
Installation
To use spikot add the following to your build.gradle.kts
file. This will install the latest version
repositories {
maven("https://jitpack.io")
}
dependencies {
implementation("com.github.CatDevz:Spikot:-SNAPSHOT")
}
Examples
Item builder DSL:
val player = Bukkit.getOnlinePlayers().random()
// Creating the ItemStack
val itemStack = item(Material.PLAYER_HEAD) {
name = "${player.name}'s Skull"
lore = listOf("The skull of ${player.name}")
meta<SkullMeta> {
owningPlayer = player
}
}