HomeJavaModsKotlinScriptLoader
KotlinScriptLoader
ModsJava

KotlinScriptLoader

It’s a script-based project—you can write your own scripts using full-fledged Kotlin! You can even create your own API and build add-ons! It’s got…

⬇ Download on Modrinth
KotlinScriptLoader — screenshot 1

KotlinScriptLoader (KSL)

KotlinScriptLoader is a Bukkit/Paper plugin that allows you to write server scripts in Kotlin (.kts) instead of Java, Skript, or Denizen. It provides a powerful, type-safe DSL with hot-reload capabilities, giving you full access to the Bukkit/Spigot/Paper API without compiling a full plugin.

🤔 Why use KSL?

⚡ Features

📝 Example Script (scripts/hello.kts)

// Listen for player joins
onEvent<PlayerJoinEvent> {
    val p = player
    p.sendRichMessage("<gradient:red:blue>Welcome, ${p.name}!</gradient>")
    
    // Check LuckPerms group
    if (p.group == "vip") {
        p.showRichTitle("<gold>VIP Player", "<gray>Enjoy your perks!")
    }
}

// Register a custom command
registerCommand("balance", aliases = listOf("bal", "money")) { player, args ->
    val bal = player.balance ?: 0.0
    player.sendRichMessage("<green>Your balance: <yellow>$${bal}")
}

// Schedule a repeating task
every(20L * 60) { // Every minute
    broadcastMM("<gray>[KSL] <white>Server is running smoothly!")
}

🎮 Commands

Command Permission Description
/ksl reload ksl.admin Reloads all scripts and config.
/ksl addons ksl.admin Lists all loaded KSL addons.
/ksl services ksl.admin Lists all registered services.
/ksl discord ksl.admin Shows configured Discord webhooks.
/ksl sandbox ksl.admin Shows sandbox status.

📦 Requirements

Preview/Обложка

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more