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.
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.
@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
Describe your plugin
"Blocks mined in the mine area regenerate after 30 seconds." Mention Folia so Kodari targets it.
Kodari writes region-safe code
Every world and entity change goes through Folia's schedulers, on the thread that owns it.
It compiles and fixes itself
Kodari builds the .jar and fixes compile errors on its own.
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?
Why do normal plugins not work on Folia?
Can one plugin run on both Paper and Folia?
What does folia-supported mean?
Can Kodari convert my existing plugin to Folia?
Do I need to understand threading?
Build your Folia plugin now
Sign up free and get 10 credits, plus 50 more when you join our Discord.
Start Building Free