ᴍɪɴᴇᴄʀᴀꜰᴛʀᴇꜱᴏᴜʀᴄᴇꜱ

CommandAPI

Modrinth

An API to use the command UI introduced in Minecraft 1.13

99.1K downloads116 followersUpdated 1mo ago

12.1.0 · MC 26.3 · Velocity

View on Modrinth

Files

  • 12.1.0

    release

    12.1.0

    26.326.226.1.226.1.1+20velocity

    2026-09-26 · 1.2K downloads

    CommandAPI-12.1.0-Velocity.jar · 204 KB

  • 12.1.0

    release

    12.1.0

    26.326.226.1.226.1.1+20spigot

    2026-09-26 · 3.3K downloads

    CommandAPI-12.1.0-Spigot.jar · 749 KB

  • 12.1.0

    release

    12.1.0

    26.326.226.1.226.1.1+14foliapaper

    2026-09-26 · 3.6K downloads

    CommandAPI-12.1.0-Paper.jar · 643 KB

  • 12.0.0

    release

    12.0.0

    26.226.1.226.1.126.1+19velocity

    2026-07-28 · 2.2K downloads

    CommandAPI-12.0.0-Velocity.jar · 203 KB

  • 12.0.0

    release

    12.0.0

    26.226.1.226.1.126.1+19spigot

    2026-07-28 · 3.9K downloads

    CommandAPI-12.0.0-Spigot.jar · 724 KB

  • 12.0.0

    release

    12.0.0

    26.226.1.226.1.126.1+13foliapaper

    2026-07-28 · 4.1K downloads

    CommandAPI-12.0.0-Paper.jar · 670 KB

  • 11.2.0

    release

    CommandAPI 11.2.0

    26.1.126.11.21.111.21.10+11foliapaper

    2026-04-01 · 20.8K downloads

    CommandAPI-11.2.0-Paper.jar · 716 KB

  • 11.2.0

    release

    CommandAPI 11.2.0

    26.1.126.11.21.111.21.10+17spigot

    2026-04-01 · 833 downloads

    CommandAPI-11.2.0-Spigot.jar · 784 KB

  • 11.2.0

    release

    CommandAPI 11.2.0

    26.1.126.11.21.111.21.10+17velocity

    2026-04-01 · 820 downloads

    CommandAPI-11.2.0-Velocity.jar · 211 KB

  • 11.1.0

    release

    CommandAPI 11.1.0 (Paper)

    1.21.111.21.101.21.91.21.8+9foliapaper

    2025-12-16 · 20.5K downloads

    CommandAPI-11.1.0-Paper.jar · 672 KB

  • 11.1.0

    release

    CommandAPI 11.1.0 (Spigot)

    1.21.111.21.101.21.91.21.8+15spigot

    2025-12-16 · 1.4K downloads

    CommandAPI-11.1.0-Spigot.jar · 738 KB

  • 11.1.0

    release

    CommandAPI 11.1.0 (Velocity)

    1.21.111.21.101.21.91.21.8+15velocity

    2025-12-16 · 225 downloads

    CommandAPI-11.1.0-Velocity.jar · 209 KB

  • 11.0.0

    release

    CommandAPI 11.0.0 (Paper)

    1.21.91.21.81.21.71.21.6+7foliapaper

    2025-10-04 · 6.2K downloads

    CommandAPI-11.0.0-Paper.jar · 646 KB

  • 11.0.0

    release

    CommandAPI 11.0.0 (Spigot)

    1.21.91.21.81.21.71.21.6+13spigot

    2025-10-04 · 871 downloads

    CommandAPI-11.0.0-Spigot.jar · 704 KB

  • 11.0.0

    release

    CommandAPI 11.0.0 (Velocity)

    1.21.91.21.81.21.71.21.6+13velocity

    2025-10-04 · 153 downloads

    CommandAPI-11.0.0-Velocity.jar · 207 KB

  • 10.1.2

    release

    CommandAPI 10.1.2 (Mojang-Mapped)

    1.21.81.21.71.21.61.21.5+12foliapaper

    2025-07-21 · 4.6K downloads

    CommandAPI-10.1.2-Mojang-Mapped.jar · 651 KB

  • 10.1.2

    release

    CommandAPI 10.1.2 (Spigot-Mapped)

    1.21.81.21.71.21.61.21.5+12bukkitspigot

    2025-07-21 · 905 downloads

    CommandAPI-10.1.2.jar · 641 KB

  • 10.1.1

    release

    CommandAPI 10.1.1 (Mojang-Mapped)

    1.21.71.21.61.21.51.21.4+11foliapaper

    2025-07-02 · 961 downloads

    CommandAPI-10.1.1-Mojang-Mapped.jar · 651 KB

  • 10.1.1

    release

    CommandAPI 10.1.1 (Spigot-Mapped)

    1.21.71.21.61.21.51.21.4+11bukkitspigot

    2025-07-02 · 205 downloads

    CommandAPI-10.1.1.jar · 641 KB

  • 10.1.0

    release

    CommandAPI 10.1.0 (Mojang-Mapped)

    1.21.61.21.51.21.41.21.3+10foliapaper

    2025-06-23 · 478 downloads

    CommandAPI-10.1.0-Mojang-Mapped.jar · 651 KB

Files are delivered unmodified from Modrinth's servers and verified against the SHA-512 hash published by the project. The project's license applies to every file; check it before redistributing.

Gallery

Better argumentsSupport for proxied command sendersArgument tooltips

About

A Bukkit/Spigot API to use the command UI introduced in Minecraft 1.13

Everything you'll ever need can be found on the GitHub page

What is the CommandAPI?

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!

Brief overview of features

  • Better commands - Prevent players from running invalid commands, making it easier for developers
  • Better arguments - Automatic argument parsing with built-in validation
  • Support for proxied command senders - Run your command as other entities using /execute as ... run command
  • Support for the /execute command - Let your command to be executed by the built in /execute command
  • Support for Minecraft's functions - Allow your command to be executed from Minecraft's functions and tags
  • No plugin.yml registration - Commands don't need to be registered in the plugin.yml file anymore
  • No other dependencies - You don't need to import Brigadier in your projects to use the CommandAPI
  • No tracking - The CommandAPI doesn't collect any stats about its plugin; what you see is what you get!

Argument type casting

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!

CommandSender type checks

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();

Documentation

The latest documentation can be found here. Trust me, you've never, ever seen documentation this good before.

Built-in plugin converter

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!

Still not convinced?

Here's what else it can do:

  • Parse integers with ranges automatically (force your command to only accept values within a range)
  • Handle integer and floating point locations, as well as relative locations using the ~ symbol
  • Parse raw JSON and convert it straight into a BaseComponent[]
  • Parse online players, with suggestions based on who's online
  • Create custom arguments that parse Strings into custom defined objects
  • Apply permissions to specific arguments - you need permissions to even see the suggested arguments as well as run it
  • Make other plugins that weren't written with the CommandAPI compatible with the /execute command
  • Handle results and successes of commands just like you can with command blocks
  • Set context-aware suggestions based on what the user has already entered into their command prompt

Need I say more?