Brigadier

"I’m so proud of that name! Brigadier is the name of the command engine that Minecraft uses."

- Dinnerbone

Brigadier is a command parser and dispatcher, designed and developed for Minecraft: Java Edition, mainly maintained by Dinnerbone. It is the first library used by Java Edition that Mojang has released under an open-source license.

Usage
Brigadier is used for parsing and executing string commands.

Features

 * Define command nodes with argument or literal branches
 * All the commands available in Java Edition are actually the literal branches available for the root command nodes instead of the actual executed commands.
 * Modify/fork command source in command contexts
 * may modify the command source to be multiple when multiple entities are selected
 * Active inspection on command parsing
 * Listing all possible commands from current command node
 * Handle command result real-time on execution success/failure
 * can store the command result to block/entity NBT data or scoreboard
 * Recursive command node redirection
 * redirects to the root node of the vanilla command dispatcher