Skip to Content
MineDuels

Folia notes

Running MineDuels on Folia: worlds, schedulers, and what differs from Paper.

MineDuels supports Paper and Folia with one jar. Its plugin.yml has folia-supported: true. All work that touches players, blocks or entities runs on the thread that owns them.

Arena world

Folia cannot create worlds while it runs. Point arena.world in config.yml at a world that already exists:

arena:
  world: mineduels_arenas

Create the world before you start the server. Set the MineDuels void generator for it in bukkit.yml:

worlds:
  mineduels_arenas:
    generator: MineDuels

On Paper the plugin creates the arena world itself when it is missing. If it cannot find or create it, the console says so and arenas are disabled. World lookup and game rule changes are delayed until the server is ready, because they must not run during onEnable on Folia.

What runs where

WorkThread
A player's inventory, teleport, effectsThat player's thread
Blocks, arena resets, signsThe region thread of the chunk
Timers (queue, drain, hologram text)The global region thread, or the region of what they change
DatabaseMineDuels' own database threads
Web API reads of game stateThe global region thread

Events fire on the thread that caused them. Plugins that listen to MineDuels events must not assume the main thread. See Threads and Folia.

Differences you may see

  • Locator bar. Behaviour differs on some Folia versions. Check locator-bar in config.yml. See Locator bar.
  • Teleports. On Folia a teleport is asynchronous. MineDuels waits for it to finish before it continues with the match.
  • Other plugins. A plugin that does not support Folia does not load on Folia. Tab, scoreboard and permission plugins must be Folia builds.
  • Nametags. Hologram nametags need packetevents and are described in Nametags.

Checklist

  1. Folia build of the server and Java 21 or newer.
  2. arena.world points to an existing world with the MineDuels generator.
  3. plugins/MineDuels is created by the first start. Run /md setlobby.
  4. Create kits and arenas as on Paper. See Creating kits and arenas.
  5. Test one match with two players before you open the server.

Related: Requirements, Installation.

On this page