KPaper is a utility library designed to simplify plugin development with Paper and Kotlin. It provides Kotlin-friendly APIs and abstractions to make Paper plugin development faster, cleaner, and more enjoyable.
repositories {
maven("https://nexus.modlabs.cc/repository/maven-mirrors/")
}
dependencies {
implementation("cc.modlabs:KPaper:$version")
}
Here's a basic example of using KPaper in a plugin:
import de.joker.kpaper.event.listen
import de.joker.kpaper.main.KPlugin
import org.bukkit.event.player.PlayerJoinEvent
class MyPlugin : KPlugin() {
override fun startup() {
listen<PlayerJoinEvent> {
it.player.sendMessage("Welcome to the server, ${it.player.name}!")
}
}
}
Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests on the GitHub repository.