// 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
PluginBootstrapandPluginLoader. - Commands registered in code with Paper's Brigadier command API.
- Classloader isolation from other plugins.
- Control over load order and classpath for each dependency.
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.
name: ExamplePlugin
version: 1.0.0
main: com.example.exampleplugin.ExamplePlugin
description: Example plugin
depend: [Vault]
commands:
hello:
description: Says helloname: 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: trueThe 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
| Topic | plugin.yml | paper-plugin.yml |
|---|---|---|
| Commands | A commands: section | Registered in code with the Brigadier command API |
| Dependencies | Listed under depend and softdepend | Split into bootstrap and server, each with load, required and join-classpath |
| Classloader | Standard Bukkit loader | Isolated: other plugins are visible only through a declared dependency |
| Bootstrap and loader classes | Not available | Supported, through PluginBootstrap and PluginLoader |
| Runs on Spigot | Yes | No: Paper and its forks only |
| Stability | Long-standing and widely used | Experimental, 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.
bootstraporserver: the group the dependency belongs to. Useserverfor plugins running on the server, such as Vault. Usebootstrapfor what the bootstrapper needs.load: the order between your plugin and the dependency.BEFOREloads the dependency before your plugin, which is what you want for anything you call at startup, like Vault above.AFTERloads it after your plugin, andOMIT, the default, leaves the order undefined.required: defaulttrue. The dependency must be present.join-classpath: defaulttrue. 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.
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
- Create
paper-plugin.ymlinsrc/main/resources, next to your existingplugin.yml. - Copy
name,version,mainanddescription, and addapi-version, for example'26.3'. - Move each
dependandsoftdependentry underdependencies, and setloadandrequiredfor each one. - Remove the
commands:section and register each command in code, as shown above. - Check which other plugins' classes you use. Under isolation they are visible only through a dependency with
join-classpath. - Decide whether the jar still needs
plugin.yml. If it stays, keep its commands section too, because Spigot reads it. - 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
ConfigurationSerializableclasses are not registered automatically. CallConfigurationSerialization.registerClass(...)beforegetObject. - Libraries. Do not resolve from Maven Central directly. Use Paper's mirror,
MavenLibraryResolver.MAVEN_CENTRAL_DEFAULT_MIRROR, or thePAPER_DEFAULT_CENTRAL_REPOSITORYsetting. 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.
