Everything you'll ever need can be found on the GitHub page
The CommandAPI provides full support for the new command UI which was implemented in Minecraft's 1.13 update.
!Example of the CommandAPI in use
Wanna stay up to date? We've got a Discord server!
Instead of checking if an argument is an integer after they run the command like this:
onCommand(CommandSender sender, Command command, String label, String[] args) {
try {
int i = Integer.parseInt(args[0]);
// Do something with this number
catch (NumberFormatException e) {
// Do something with the fact this isn't a number...
}
}
You can rest assured that the CommandAPI has inferred whatever type you want and can jump straight to this:
new CommandAPICommand("mycommand")
.withArguments(new IntegerArgument("myint"))
.executes((sender, args) -> {
int i = (int) args.get("myint");
// Do something with this number
})
.register();
The CommandAPI offers over 40 different arguments to tailor to your needs! Automatic casting to Enchantments, EntityTypes, Locations, ItemStacks, PotionEffects and many more!
Never again will you have to check if your sender is a player! The CommandAPI provides automatic command sender checks for all sorts of command senders:
new CommandAPICommand("mycommand")
.withArguments(arguments)
.executesPlayer((player, args) -> {
player.sendMessage("Hi " + player.getDisplayName());
})
.register();
The latest documentation can be found here. Trust me, you've never, ever seen documentation this good before.
Bummed that your plugin's commands can't be used with the /execute command and don't know how to write code? The CommandAPI has you covered! With its built-in plugin command conversion system, you can make any plugin command compatible with Minecraft's /execute command and datapacks!
Here's what else it can do:
Need I say more?

An API to use the command UI introduced in Minecraft 1.13