Kotlin · Spigot · Paper · Folia

Kotlin Plugin Generator
Minecraft plugins written in Kotlin

Describe your plugin and Kodari writes it in Kotlin for Spigot, Paper or Folia: shorter, null-safe code that is easier to read and change. It compiles the plugin and fixes its own errors, so you download a ready .jar.

Free to start
Compiled .jar
No Kotlin required

Idiomatic Kotlin, not Java with a different syntax

Kodari uses what makes Kotlin worth it: null safety, lambdas, data classes and extension functions.

SpawnPlugin.kt
class SpawnPlugin : JavaPlugin() {

    override fun onEnable() {
        getCommand("spawn")?.setExecutor { sender, _, _, _ ->
            val player = sender as? Player ?: return@setExecutor false

            player.teleport(player.world.spawnLocation)
            player.sendMessage("Teleported to spawn")
            true
        }
    }
}
  • Null safety, so a missing player or world never crashes your server
  • Data classes for configs, kits, stats and anything you store
  • Extension functions that keep repeated code short
  • Works with Spigot, Paper and Folia APIs
  • Built with Gradle into one .jar your server can load

What's in your project

Every file is yours to open, edit and download.

  • src/main/kotlin/Your plugin in Kotlin: main class, commands, listeners and data classes.
  • plugin.ymlName, version, commands and permissions.
  • config.ymlSettings you can change without touching code.
  • build.gradle.ktsA Kotlin Gradle build with the server API and the Kotlin plugin.
  • YourPlugin.jarThe compiled plugin, ready for /plugins.

Why Kotlin

Less code

The same plugin is often a third shorter than in Java, so it is easier to read and change later.

Fewer crashes

Kotlin makes you handle missing values, which removes the most common plugin crash: the NullPointerException.

Same libraries

Kotlin runs on the JVM, so every Java plugin API and library still works.

From one prompt to a Kotlin plugin

1

Describe your plugin

"A stats plugin that tracks kills, deaths and playtime and shows them in /stats." Pick Kotlin plugins in Kodari.

2

Kodari writes Kotlin

The AI writes idiomatic Kotlin with data classes and null-safe code.

3

It compiles and fixes itself

Kodari builds the .jar with Gradle and fixes compile errors on its own.

4

Drop it in /plugins

Download the .jar, add it to your server and restart.

What you can build

Kotlin plugins people make with Kodari.

Stats and leaderboards

Kills, deaths and playtime with data classes and top lists.

Abilities

Custom abilities and cooldowns with clean, short code.

GUI menus

Inventory menus built with small Kotlin helpers.

Economy

Balances, shops and transactions with safe data handling.

Databases

SQLite and MySQL storage for player data.

APIs for other plugins

Clean Kotlin APIs other plugins can hook into.

Frequently asked questions

Is the Kotlin plugin generator free?
Yes. Every new account gets 10 free credits, plus 50 more when you join the Kodari Discord.
Do Kotlin plugins work on normal servers?
Yes. Kotlin compiles to the same bytecode as Java, so a Kotlin plugin loads on Spigot, Paper and Folia like any other plugin.
Do I need to know Kotlin?
No. You describe what you want and Kodari writes the Kotlin. You can still read and edit every file.
Kotlin or Java, which should I pick?
If you want to read or change the code yourself, Kotlin is shorter and safer. If you want the most tutorials and examples online, Java has more. Kodari writes both.
Can it use Java libraries?
Yes. Kotlin works with every Java library and plugin API, including Vault and PlaceholderAPI.
Can Kodari convert a Java plugin to Kotlin?
Yes. Import your Java project and ask the AI to rewrite it in Kotlin. It keeps the behavior and uses Kotlin idioms where they help.

Build your Kotlin plugin now

Sign up free and get 10 credits, plus 50 more when you join our Discord.

Start Building Free