Folia Compatibility

📝 Atualizado em 11/03/2026

What is Folia?

Folia is a Paper fork that changes how Minecraft handles multiple worlds and chunks, improving performance for large servers.

Compatibility Features

  • Automatic Detection - Plugin detects Folia vs Paper/Spigot
  • Smart Scheduling - Uses appropriate scheduler for each platform
  • Entity Tasks - Player-specific tasks run on correct thread
  • Global Tasks - Server-wide tasks handled properly

Technical Details

The plugin uses SchedulerUtil class to handle scheduling:

// Automatically uses correct scheduler
SchedulerUtil.runTask(plugin, () -> {
    // Your code here
});

// For player-specific tasks
SchedulerUtil.runTaskForEntity(plugin, player, () -> {
    // Player-specific code
});

Configuration

Add to plugin.yml:

folia-supported: true

No additional configuration needed - works automatically!