Folia Compatibility

📝 Atualizado em 07/02/2026

How It Works

DKSpawn automatically detects Folia and adapts its behavior:

On Folia:

  • Uses World.setSpawnLocation() for respawn
  • Uses regional scheduler for delayed tasks
  • Async teleportation with teleportAsync()
  • Thread-safe entity and block access

On Spigot/Paper:

  • Uses PlayerRespawnEvent.setRespawnLocation()
  • Standard Bukkit scheduler
  • Sync or async teleportation based on availability

Technical Details

The plugin detects Folia by checking for:

Class.forName("io.papermc.paper.threadedregions.RegionizedServer");

All operations are thread-safe and respect regional boundaries.