// voxen field notes

Paper Plugins vs Bukkit Plugins: paper-plugin.yml Explained (2026)

· 7 min read · [ EXPLAINER ] · by Matteo Orazietti

Paper has a second plugin format, paper-plugin.yml, next to the long-standing plugin.yml. It adds fields that plugin.yml does not have, and it has no commands section, so commands are written in code. The format is still experimental. This post compares the two and says when each one makes sense.

The short answer

Most plugins should still ship plugin.yml. A jar with that file runs on Spigot, Paper and Purpur. Choose paper-plugin.yml only when you need one of the following, and you accept that the plugin runs on Paper and its forks, not on Spigot:

  • A bootstrapper or a loader class, through PluginBootstrap and PluginLoader.
  • Commands registered in code with Paper's Brigadier command API.
  • Classloader isolation from other plugins.
  • Control over load order and classpath for each dependency.
Experimental. Paper's own documentation says this format is experimental and may be subject to change. Pin your Paper version and retest after each server update.

The same plugin in both formats

The example has one dependency and one command. First the plugin.yml, then the paper-plugin.yml that describes the same plugin.

terminal — plugin.yml
name: ExamplePlugin
version: 1.0.0
main: com.example.exampleplugin.ExamplePlugin
description: Example plugin
depend: [Vault]
commands:
  hello:
    description: Says hello
terminal — paper-plugin.yml
name: ExamplePlugin
version: 1.0.0
main: com.example.exampleplugin.ExamplePlugin
description: Example plugin
api-version: '26.3'
dependencies:
  server:
    Vault:
      load: BEFORE
      required: true
      join-classpath: true

The Paper file has no commands: section, so the command moves into code. The dependency moves under dependencies, where each setting is written out. For every field of the first file, see plugin.yml Explained: Every Field With a Working Example (2026).

How the two compare

Topicplugin.ymlpaper-plugin.yml
CommandsA commands: sectionRegistered in code with the Brigadier command API
DependenciesListed under depend and softdependSplit into bootstrap and server, each with load, required and join-classpath
ClassloaderStandard Bukkit loaderIsolated: other plugins are visible only through a declared dependency
Bootstrap and loader classesNot availableSupported, through PluginBootstrap and PluginLoader
Runs on SpigotYesNo: Paper and its forks only
StabilityLong-standing and widely usedExperimental, may change

Folia uses the same folia-supported flag in either file. Its scheduler rules are a separate question, covered in Folia Plugin Compatibility: Why Plugins Break and How to Port Them (2026).

Dependencies explained

The dependency block is where the two formats differ most. Each entry takes four settings.

  • bootstrap or server: the group the dependency belongs to. Use server for plugins running on the server, such as Vault. Use bootstrap for what the bootstrapper needs.
  • load: the order between your plugin and the dependency. BEFORE loads the dependency before your plugin, which is what you want for anything you call at startup, like Vault above. AFTER loads it after your plugin, and OMIT, the default, leaves the order undefined.
  • required: default true. The dependency must be present.
  • join-classpath: default true. Your plugin can use the dependency's classes. This is how isolation is lifted for that one plugin.

Registering commands without a commands section

Commands are registered in onEnable. Paper's lifecycle event for commands gives you a registrar, and you add a Brigadier command to it.

terminal — Java
import com.mojang.brigadier.Command;
import io.papermc.paper.command.brigadier.Commands;
import io.papermc.paper.plugin.lifecycle.event.types.LifecycleEvents;
import org.bukkit.plugin.java.JavaPlugin;

public class ExamplePlugin extends JavaPlugin {

    @Override
    public void onEnable() {
        this.getLifecycleManager().registerEventHandler(LifecycleEvents.COMMANDS, event -> {
            event.registrar().register(Commands.literal("hello")
                .executes(ctx -> {
                    ctx.getSource().getSender().sendMessage("Hello");
                    return Command.SINGLE_SUCCESS;
                })
                .build());
        });
    }
}

Migrating from plugin.yml

  1. Create paper-plugin.yml in src/main/resources, next to your existing plugin.yml.
  2. Copy name, version, main and description, and add api-version, for example '26.3'.
  3. Move each depend and softdepend entry under dependencies, and set load and required for each one.
  4. Remove the commands: section and register each command in code, as shown above.
  5. Check which other plugins' classes you use. Under isolation they are visible only through a dependency with join-classpath.
  6. Decide whether the jar still needs plugin.yml. If it stays, keep its commands section too, because Spigot reads it.
  7. Build, boot a Paper test server, and read the startup log for the plugin and its dependencies.

Porting a whole Spigot plugin, not only its yml, is covered in How to Port a Spigot Plugin to Paper and Purpur (2026 Guide).

Pitfalls

  • Cyclic load order. Paper plugins do not resolve a cycle. If plugin A must load before B and B must load before A, the server does not start.
  • Serialization. Custom ConfigurationSerializable classes are not registered automatically. Call ConfigurationSerialization.registerClass(...) before getObject.
  • Libraries. Do not resolve from Maven Central directly. Use Paper's mirror, MavenLibraryResolver.MAVEN_CENTRAL_DEFAULT_MIRROR, or the PAPER_DEFAULT_CENTRAL_REPOSITORY setting. Otherwise the server logs a warning.

Where Voxen Engine fits

Voxen Engine generates plugins for Spigot, Paper and Purpur. Describe the plugin in plain language and it writes the Java code, compiles it in the cloud and gives you the .jar. Five generations are free, with no card. Test the jar on a copy of your server before it goes live.