Folia · Region threads

Folia Plugin Generator
Thread-safe plugins for Folia servers

Folia runs each region of the world on its own thread, so the usual Bukkit scheduler is gone and most plugins break. Describe yours and Kodari writes it with Folia's region and entity schedulers, then compiles it into a .jar.

Free to start
Region-safe scheduling
No Java required

Scheduling done the Folia way

On Folia, every change to a block or entity has to run on the thread that owns it. Kodari routes each task to the right scheduler.

RegenListener.java
@EventHandler
public void onBreak(BlockBreakEvent event) {
    Player player = event.getPlayer();
    Location location = event.getBlock().getLocation();

    // Runs on the thread that owns this region, 1 second later
    getServer().getRegionScheduler().runDelayed(this, location,
        task -> location.getBlock().setType(Material.STONE), 20L);

    // Follows the player, even if they move to another region
    player.getScheduler().run(this, task -> player.sendActionBar(
        Component.text("This block will regenerate")), null);
}
  • Region, entity, global and async schedulers instead of BukkitScheduler
  • FoliaLib when you want one .jar for Paper and Folia
  • folia-supported: true in plugin.yml, so Folia loads it
  • No shared state touched from the wrong thread
  • Compiled and checked before you download it

What's in your project

Every file is yours to open, edit and download.

  • src/main/java/Your plugin classes, with every task sent to the right scheduler.
  • plugin.ymlIncludes folia-supported: true, without which Folia refuses to load a plugin.
  • config.ymlSettings you can change without touching code.
  • build.gradleThe build file with the Folia or Paper API.
  • YourPlugin.jarThe compiled plugin for your Folia server.

Why Folia is hard by hand

Most plugins break

Any plugin that uses the Bukkit scheduler or touches the world from the wrong thread fails on Folia.

Threading is subtle

Bugs only show up under load, when two regions touch the same data at once. Getting it right takes experience.

Built for huge servers

Folia is for servers with hundreds of players. A plugin that is not region-safe holds the whole server back.

From one prompt to a Folia-ready plugin

1

Describe your plugin

"Blocks mined in the mine area regenerate after 30 seconds." Mention Folia so Kodari targets it.

2

Kodari writes region-safe code

Every world and entity change goes through Folia's schedulers, on the thread that owns it.

3

It compiles and fixes itself

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

4

Drop it in /plugins

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

What you can build

Plugins that need to stay smooth on very busy servers.

Mines and regen

Mine areas that reset and blocks that regenerate on timers.

Custom mobs

Bosses and mob abilities scheduled on the entity's own thread.

Teleports

RTP, homes and warps using async teleports.

Timed events

Drops, airdrops and events on global timers.

Economy

Shops and balances with thread-safe storage.

Stats

Leaderboards and player stats saved asynchronously.

Frequently asked questions

Is the Folia plugin generator free?
Yes. Every new account gets 10 free credits, plus 50 more when you join the Kodari Discord.
Why do normal plugins not work on Folia?
Folia removes the global Bukkit scheduler and runs each region on its own thread. Plugins that schedule tasks the old way, or change blocks and entities from the wrong thread, fail to load or crash.
Can one plugin run on both Paper and Folia?
Yes. Ask for it and Kodari uses FoliaLib, which picks the right scheduler at runtime, so the same .jar works on Paper, Spigot and Folia.
What does folia-supported mean?
It is a line in plugin.yml that tells Folia the plugin is safe to load. Without it Folia skips the plugin. Kodari adds it for you.
Can Kodari convert my existing plugin to Folia?
Yes. Import your project (importing a .jar needs the Stellar plan) and ask the AI to make it Folia compatible. It replaces scheduler calls and moves world changes onto the right threads.
Do I need to understand threading?
No. Describe what the plugin should do. Kodari decides which scheduler each task belongs on.

Build your Folia plugin now

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

Start Building Free