Skip to content

Latest commit

 

History

History
76 lines (61 loc) · 3.19 KB

File metadata and controls

76 lines (61 loc) · 3.19 KB

KPaper Documentation

Welcome to the comprehensive documentation for KPaper - a Kotlin utility library that simplifies Paper plugin development.

📚 Documentation Overview

Getting Started

Core Concepts

API Guides

Examples & Recipes

Reference

🚀 Quick Start

class MyPlugin : KPlugin() {
    override fun startup() {
        // Event handling
        listen<PlayerJoinEvent> { 
            it.player.sendMessage("Welcome ${it.player.name}!") 
        }
        
        // Commands
        command("hello") {
            description = "Say hello to a player"
            execute { sender, args ->
                sender.sendMessage("Hello ${args.getOrNull(0) ?: "World"}!")
            }
        }
        
        // Custom GUIs
        val gui = simpleGUI("My GUI", 9) {
            item(0, ItemBuilder(Material.DIAMOND).name("Click me!").build()) {
                player.sendMessage("You clicked the diamond!")
            }
        }
    }
}

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details on how to contribute to KPaper.

📝 License

KPaper is licensed under the GPL-3.0 License. See LICENSE for details.