Reference this skill when registering commands on a Purpur server. Purpur inherits the full Paper Brigadier command system — there are no Purpur-specific command APIs. This skill documents any minor differences and cross-links to Paper.
When to Use This Skill
Setting up commands on a Purpur-targeted plugin
Checking whether Purpur adds any command-related APIs beyond Paper
API Quick Reference
Purpur adds no new command APIs. Use the Paper Brigadier system:
No Purpur-specific command classes: Do not search for org.purpurmc.purpur.command.* — it does not exist. Use io.papermc.paper.command.brigadier.* exclusively.
Testing on Paper then deploying on Purpur: Since Purpur extends Paper, commands work identically. No additional testing specifically for Purpur command registration is required.
Version Notes
Purpur 1.21.1: Command API is 100% inherited from Paper 1.21.1.
No plugin.yml differences for command declarations vs Paper.
1---2name: commands-23description: Commands Skill — Purpur4---5# Commands Skill — Purpur67## Purpose8Reference this skill when registering commands on a Purpur server. Purpur inherits the full Paper Brigadier command system — there are no Purpur-specific command APIs. This skill documents any minor differences and cross-links to Paper.910## When to Use This Skill11- Setting up commands on a Purpur-targeted plugin12- Checking whether Purpur adds any command-related APIs beyond Paper1314## API Quick Reference1516Purpur adds no new command APIs. Use the Paper Brigadier system:1718| Class / Method | Purpose | Notes |19|---------------|---------|-------|20| `LifecycleEvents.COMMANDS` | Lifecycle event for command registration | Same as Paper |21| `Commands` (registrar) | Brigadier command registrar | Same as Paper |22| `io.papermc.paper.command.brigadier.*` | All Brigadier classes | Identical on Purpur |2324## Code Pattern2526Purpur command registration is identical to Paper. See [../../paper/commands/brigadier-commands.md](../../paper/commands/brigadier-commands.md) for the complete pattern.2728```java29// Purpur command registration — identical to Paper30import io.papermc.paper.plugin.lifecycle.event.types.LifecycleEvents;31import io.papermc.paper.command.brigadier.Commands;32import com.mojang.brigadier.Command;3334@Override35public void onEnable() {36 this.getLifecycleManager().registerEventHandler(37 LifecycleEvents.COMMANDS,38 event -> {39 Commands cmds = event.registrar();40 cmds.register(41 Commands.literal("mypurpurcommand")42 .requires(src -> src.getSender().hasPermission("myplugin.command"))43 .executes(ctx -> {44 ctx.getSource().getSender().sendMessage(45 net.kyori.adventure.text.Component.text("Hello from Purpur!")46 );47 return Command.SINGLE_SUCCESS;48 })49 .build(),50 "A Purpur plugin command"51 );52 }53 );54}55```5657## Common Pitfalls5859- **No Purpur-specific command classes**: Do not search for `org.purpurmc.purpur.command.*` — it does not exist. Use `io.papermc.paper.command.brigadier.*` exclusively.6061- **Testing on Paper then deploying on Purpur**: Since Purpur extends Paper, commands work identically. No additional testing specifically for Purpur command registration is required.6263## Version Notes6465- **Purpur 1.21.1**: Command API is 100% inherited from Paper 1.21.1.66- No `plugin.yml` differences for command declarations vs Paper.6768## Related Skills6970- [../../paper/commands/SKILL.md](../../paper/commands/SKILL.md) — Full Paper Brigadier commands overview71- [../../paper/commands/brigadier-commands.md](../../paper/commands/brigadier-commands.md) — Brigadier deep dive72- [../../paper/commands/command-completion.md](../../paper/commands/command-completion.md) — Tab completion73- [../OVERVIEW.md](../OVERVIEW.md) — Purpur platform setup
Run npx skillmds@latest add mrpippi/commands-2 in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Commands Skill — Purpur It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
MrPippi (@mrpippi) published this skill. Their other Agent Skills are listed on their SkillMD profile.