Introduction
Paper’s command system is built on top of Minecraft’s Brigadier command system. This system provides a powerful and flexible way to define commands and arguments. It offers many advantages above the previously widely used Bukkit command system:
- Less parsing or error checking required by the developer for arguments.
- Better user experience with client error checking.
- Integration with reload events, allowing the definition of commands usable in datapacks.
- Easier creation of subcommands.
Guide
The following sites are worth-while to look through first when learning about Brigadier:
- The Command Tree
- Arguments and Literals
- Command Executors
- Command Registration
- Command Requirements
- Argument Suggestions
- Custom Arguments
For a reference of more advanced arguments, you should look here:
Additional support
For support regarding the command API, you can always ask in our Discord Server in the #paper-dev
channel!