Skip to content

CommandAPI Plugin para Minecraft 1.20.1, 1.21.1

Una API para usar la interfaz de comandos introducida en Minecraft 1.13

descargas
5 descargas
visualizaciones
49 visualizaciones
Actualizado
Actualizado 27.09.2026

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

CommandAPI — captura 2

What is the CommandAPI?

The CommandAPI provides full support for the new command UI which was implemented in Minecraft's 1.13 update.

Wanna stay up to date? We've got a Discord server!

CommandAPI — captura 3

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?

Cómo instalar CommandAPI

  1. A server on Paper, Spigot, Folia or Velocity

    The plugin runs on the server core for Minecraft 1.16.5–26.3; players do not need to install anything.

  2. File goes into the plugins folder

    Download the file CommandAPI-12.1.0-Velocity.jar (204 KB) and put it into the server’s plugins folder.

  3. Restart the server

    On startup the plugin creates its own settings folder in plugins.

  4. Or use the “To hosting” button

    On Millida Hosting, the button at the top of the page uploads the file to your server and restarts it for you.

Versiones

Con dependencias

MinecraftCargadorArchivoFechaAcciones
26.3Velocity26.3204 KB
26.3Spigot26.3749 KB
26.3Folia, Paper26.3643 KB 5
26.2Velocity26.2203 KB—
26.1Velocity26.1203 KB—
1.21.11Velocity1.21.11203 KB—
1.21Velocity1.21203 KB—
1.20.1Velocity1.20.1203 KB—

Contenido que lo necesita

FAQ

Which Minecraft versions does CommandAPI work on?

There are files for 1.16.5–26.3, 35 versions in total. The newest is 26.3.

Do players need to install CommandAPI?

No, the plugin goes only on the server Paper, Spigot, Folia or Velocity, into the plugins folder: players do not need to download anything.

Where can I download CommandAPI safely?

On this page: the file CommandAPI-12.1.0-Velocity.jar (204 KB) is stored on Millida’s server, with no link shorteners. SHA-1 checksum: f59688fef69d92173935bd6663338b3497afcd2d.

Reseñas

Sé el primero en valorar CommandAPI

Comentarios 0

Inicia sesión para comentarIniciar sesión

Plugins similares

Todos los plugins

Más sobre esto

Autor: JorelAliLicencia: MIT

¿Eres el autor? Escríbenos — lo retiraremos en 48 horas.