{"id":44547,"date":"2026-06-02T05:49:51","date_gmt":"2026-06-02T02:49:51","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/commandapi\/"},"modified":"2026-06-02T05:49:51","modified_gmt":"2026-06-02T02:49:51","slug":"commandapi","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/commandapi\/","title":{"rendered":"CommandAPI"},"content":{"rendered":"<p># A Bukkit\/Spigot API to use the command UI introduced in Minecraft 1.13<\/p>\n<p>_Everything you&#8217;ll ever need can be found on the GitHub page_<\/p>\n<p>## What is the CommandAPI?<\/p>\n<p>The CommandAPI provides full support for the new command UI which was implemented in Minecraft&#8217;s 1.13 update.<\/p>\n<p>![Example of the CommandAPI in use](https:\/\/i.imgur.com\/Ol2c7sn.gif)<\/p>\n<p> Wanna stay up to date? We&#8217;ve got a Discord server!<\/p>\n<p>## Brief overview of features<\/p>\n<p>&#8211; **Better commands** &#8211; Prevent players from running invalid commands, making it easier for developers<br \/>\n&#8211; **Better arguments** &#8211; Automatic argument parsing with built-in validation<br \/>\n&#8211; **Support for proxied command senders** &#8211; Run your command as other entities using \/execute as &#8230; run command<br \/>\n&#8211; **Support for the \/execute command** &#8211; Let your command to be executed by the built in \/execute command<br \/>\n&#8211; **Support for Minecraft&#8217;s functions** &#8211; Allow your command to be executed from Minecraft&#8217;s functions and tags<br \/>\n&#8211; **No plugin.yml registration** &#8211; Commands don&#8217;t need to be registered in the plugin.yml file anymore<br \/>\n&#8211; **No other dependencies** &#8211; You don&#8217;t need to import Brigadier in your projects to use the CommandAPI<br \/>\n&#8211; **No tracking** &#8211; The CommandAPI doesn&#8217;t collect any stats about its plugin; what you see is what you get!<\/p>\n<p>## Argument type casting<\/p>\n<p>Instead of checking if an argument is an integer after they run the command like this:<\/p>\n<p>&#8220;`java<br \/>\nonCommand(CommandSender sender, Command command, String label, String[] args) {<br \/>\n    try {<br \/>\n        int i = Integer.parseInt(args[0]);<br \/>\n        \/\/ Do something with this number<br \/>\n    catch (NumberFormatException e) {<br \/>\n        \/\/ Do something with the fact this isn&#8217;t a number&#8230;<br \/>\n    }<br \/>\n}<br \/>\n&#8220;`<\/p>\n<p>You can rest assured that the CommandAPI has inferred whatever type you want and can jump straight to this:<\/p>\n<p>&#8220;`java<br \/>\nnew CommandAPICommand(&#8220;mycommand&#8221;)<br \/>\n    .withArguments(new IntegerArgument(&#8220;myint&#8221;))<br \/>\n    .executes((sender, args) -> {<br \/>\n        int i = (int) args.get(&#8220;myint&#8221;);<br \/>\n        \/\/ Do something with this number<br \/>\n    })<br \/>\n    .register();<br \/>\n&#8220;`<\/p>\n<p>The CommandAPI offers over 40 different arguments to tailor to your needs! Automatic casting to Enchantments, EntityTypes, Locations, ItemStacks, PotionEffects and many more!<\/p>\n<p>## CommandSender type checks<\/p>\n<p>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:<\/p>\n<p>&#8220;`java<br \/>\nnew CommandAPICommand(&#8220;mycommand&#8221;)<br \/>\n    .withArguments(arguments)<br \/>\n    .executesPlayer((player, args) -> {<br \/>\n        player.sendMessage(&#8220;Hi &#8221; + player.getDisplayName());<br \/>\n    })<br \/>\n    .register();<br \/>\n&#8220;`<\/p>\n<p>## Documentation<\/p>\n<p>The latest documentation can be found here. Trust me, you&#8217;ve never, ever seen documentation this good before.<\/p>\n<p>## Built-in plugin converter<\/p>\n<p>Bummed that your plugin&#8217;s commands can&#8217;t be used with the \/execute command and don&#8217;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&#8217;s \/execute command and datapacks!<\/p>\n<p>## Still not convinced?<\/p>\n<p>Here&#8217;s what else it can do:<\/p>\n<p>&#8211; Parse integers with ranges automatically (force your command to only accept values within a range)<br \/>\n&#8211; Handle integer and floating point locations, as well as relative locations using the ~ symbol<br \/>\n&#8211; Parse raw JSON and convert it straight into a BaseComponent[]<br \/>\n&#8211; Parse online players, with suggestions based on who&#8217;s online<br \/>\n&#8211; Create custom arguments that parse Strings into custom defined objects<br \/>\n&#8211; Apply permissions to specific arguments &#8211; you need permissions to even see the suggested arguments as well as run it<br \/>\n&#8211; Make other plugins that weren&#8217;t written with the CommandAPI compatible with the \/execute command<br \/>\n&#8211; Handle results and successes of commands just like you can with command blocks<br \/>\n&#8211; Set context-aware suggestions based on what the user has already entered into their command prompt<\/p>\n<p>Need I say more?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>An API to use the command UI introduced in Minecraft 1.13<\/p>\n","protected":false},"featured_media":44548,"template":"","meta":{"_minecraft_slug":"commandapi","_minecraft_project_id":"ExxvCi0y","_minecraft_author":"JorelAli","_minecraft_license":"MIT","_minecraft_downloads":63615,"_minecraft_follows":104,"_minecraft_client_side":"unsupported","_minecraft_server_side":"required","_minecraft_storage_type":"zip","_minecraft_archive_name":"commandapi.zip","_minecraft_size_bytes":33679141,"_minecraft_version_count":59,"_minecraft_updated_at":"2026-05-15T21:54:45.814997Z","_minecraft_date_created":"2022-09-04T15:54:59.117886Z","_minecraft_date_modified":"2026-04-01T23:44:42.613116Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/commandapi","_minecraft_icon_attachment_id":44548,"_minecraft_imported_at":"2026-06-02T02:49:52+00:00","_minecraft_import_hash":"116fd18204320e90f6c9c734dbc863db","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[124,125,873,127,129,92,985],"mod_loader":[130,131,132,134,986],"minecraft_version":[438,446,449,110,111,112,113,114,115,116,117,118,119,120,46,47,48,49,50,51,52,53,54,55,56,57,58,59,36,60,93,94,101,102,62,37,40,41,73,74,38,78,79,80,81,82,83,167],"class_list":["post-44547","mod","type-mod","status-publish","has-post-thumbnail","hentry","mod_category-bukkit","mod_category-folia","mod_category-library","mod_category-paper","mod_category-spigot","mod_category-utility","mod_category-velocity","mod_loader-bukkit","mod_loader-folia","mod_loader-paper","mod_loader-spigot","mod_loader-velocity","minecraft_version-1-13","minecraft_version-1-13-1","minecraft_version-1-13-2","minecraft_version-1-14","minecraft_version-1-14-1","minecraft_version-1-14-2","minecraft_version-1-14-3","minecraft_version-1-14-4","minecraft_version-1-15","minecraft_version-1-15-1","minecraft_version-1-15-2","minecraft_version-1-16","minecraft_version-1-16-1","minecraft_version-1-16-2","minecraft_version-1-16-3","minecraft_version-1-16-4","minecraft_version-1-16-5","minecraft_version-1-17","minecraft_version-1-17-1","minecraft_version-1-18","minecraft_version-1-18-1","minecraft_version-1-18-2","minecraft_version-1-19","minecraft_version-1-19-1","minecraft_version-1-19-2","minecraft_version-1-19-3","minecraft_version-1-19-4","minecraft_version-1-20","minecraft_version-1-20-1","minecraft_version-1-20-2","minecraft_version-1-20-3","minecraft_version-1-20-4","minecraft_version-1-20-5","minecraft_version-1-20-6","minecraft_version-1-21","minecraft_version-1-21-1","minecraft_version-1-21-10","minecraft_version-1-21-11","minecraft_version-1-21-2","minecraft_version-1-21-3","minecraft_version-1-21-4","minecraft_version-1-21-5","minecraft_version-1-21-6","minecraft_version-1-21-7","minecraft_version-1-21-8","minecraft_version-1-21-9","minecraft_version-26-1","minecraft_version-26-1-1"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>CommandAPI - Minecraft<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vpesports.com\/minecraft\/mods\/commandapi\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CommandAPI - Minecraft\" \/>\n<meta property=\"og:description\" content=\"An API to use the command UI introduced in Minecraft 1.13\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/commandapi\/\" \/>\n<meta property=\"og:site_name\" content=\"Minecraft\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/commandapi\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/commandapi\\\/\",\"name\":\"CommandAPI - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/commandapi\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/commandapi\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/commandapi-icon-0a47fa2acb56c2a446fd070d4407c00a0734bac0_96.webp\",\"datePublished\":\"2026-06-02T02:49:51+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/commandapi\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/commandapi\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/commandapi\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/commandapi-icon-0a47fa2acb56c2a446fd070d4407c00a0734bac0_96.webp\",\"contentUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/commandapi-icon-0a47fa2acb56c2a446fd070d4407c00a0734bac0_96.webp\",\"width\":96,\"height\":96},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/commandapi\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mods\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"CommandAPI\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\",\"name\":\"Minecraft\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CommandAPI - Minecraft","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vpesports.com\/minecraft\/mods\/commandapi\/","og_locale":"en_US","og_type":"article","og_title":"CommandAPI - Minecraft","og_description":"An API to use the command UI introduced in Minecraft 1.13","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/commandapi\/","og_site_name":"Minecraft","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vpesports.com\/minecraft\/mods\/commandapi\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/commandapi\/","name":"CommandAPI - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/commandapi\/#primaryimage"},"image":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/commandapi\/#primaryimage"},"thumbnailUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/commandapi-icon-0a47fa2acb56c2a446fd070d4407c00a0734bac0_96.webp","datePublished":"2026-06-02T02:49:51+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/commandapi\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/commandapi\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vpesports.com\/minecraft\/mods\/commandapi\/#primaryimage","url":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/commandapi-icon-0a47fa2acb56c2a446fd070d4407c00a0734bac0_96.webp","contentUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/commandapi-icon-0a47fa2acb56c2a446fd070d4407c00a0734bac0_96.webp","width":96,"height":96},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/commandapi\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vpesports.com\/minecraft\/"},{"@type":"ListItem","position":2,"name":"Mods","item":"https:\/\/vpesports.com\/minecraft\/mods\/"},{"@type":"ListItem","position":3,"name":"CommandAPI"}]},{"@type":"WebSite","@id":"https:\/\/vpesports.com\/minecraft\/#website","url":"https:\/\/vpesports.com\/minecraft\/","name":"Minecraft","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vpesports.com\/minecraft\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod\/44547","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod"}],"about":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/types\/mod"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media\/44548"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=44547"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=44547"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=44547"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=44547"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}