CommandAPI
API для использования командного интерфейса, введенного в Minecraft 1.13.
Версии Minecraft: 26.3, 26.2, 26.1.2, 26.1.1, 26.1, 1.21.9, 1.21.8, 1.21.7, 1.21.6, 1.21.5, 1.21.4, 1.21.3, 1.21.2, 1.21.11, 1.21.10, 1.21.1, 1.21, 1.20.6, 1.20.5, 1.20.4
# 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](https://github.com/CommandAPI/CommandAPI)_ ## 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!](https://discord.gg/G4SzSxZ) ## 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: ```java onCommand(CommandSender sender, Command command, String label, String[] args) { try { int i = Integer.parseInt(args[0]); // Do