CommandAPI 图标

Minecraft 服务端插件

CommandAPI

An API to use the command UI introduced in Minecraft 1.13

库/API工具类bukkitfoliapaperspigotvelocity
版本范围
1.13–26.1.1
下载量
7.7 万

插件介绍

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?

版本与下载

推荐下载

CommandAPI-11.2.0-Paper.jar版本 11.2.0 · 716 KBSHA-1 e5b84851276d3887631a3404ba26a82bdec416b6下载 CommandAPI-11.2.0-Paper.jar

11.2.0

正式版
加载器
folia · paper
MC 版本
1.20.6 · 1.21 · 1.21.1 · 1.21.2 · 1.21.3 · 1.21.4 · 1.21.5 · 1.21.6 · 1.21.7 · 1.21.8 · 1.21.9 · 1.21.10 · 1.21.11 · 26.1 · 26.1.1
CommandAPI-11.2.0-Paper.jar716 KBSHA-1 e5b84851276d3887631a3404ba26a82bdec416b6获取文件 CommandAPI-11.2.0-Paper.jar
展开更新日志

Minecraft Version Changes

  • Adds support for Minecraft 26.1

Bug Fixes

  • Fixes multiple issues with command registration at bootstrap

11.2.0

正式版
加载器
spigot
MC 版本
1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6 · 1.21 · 1.21.1 · 1.21.2 · 1.21.3 · 1.21.4 · 1.21.5 · 1.21.6 · 1.21.7 · 1.21.8 · 1.21.9 · 1.21.10 · 1.21.11 · 26.1 · 26.1.1
CommandAPI-11.2.0-Spigot.jar783.9 KBSHA-1 1dfdd49ab2fdd65956ba1a8a42871d0a86e83e71获取文件 CommandAPI-11.2.0-Spigot.jar
展开更新日志

Minecraft Version Changes

  • Adds support for Minecraft 26.1

Bug Fixes

  • Fixes multiple issues with command registration at bootstrap

11.2.0

正式版
加载器
velocity
MC 版本
1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6 · 1.21 · 1.21.1 · 1.21.2 · 1.21.3 · 1.21.4 · 1.21.5 · 1.21.6 · 1.21.7 · 1.21.8 · 1.21.9 · 1.21.10 · 1.21.11 · 26.1 · 26.1.1
CommandAPI-11.2.0-Velocity.jar210.6 KBSHA-1 254f7ecab6bf1fb488a18365a991440dcb551c07获取文件 CommandAPI-11.2.0-Velocity.jar
展开更新日志

Minecraft Version Changes

  • Adds support for Minecraft 26.1

Bug Fixes

  • Fixes multiple issues with command registration at bootstrap

11.1.0

正式版
加载器
folia · paper
MC 版本
1.20.6 · 1.21 · 1.21.1 · 1.21.2 · 1.21.3 · 1.21.4 · 1.21.5 · 1.21.6 · 1.21.7 · 1.21.8 · 1.21.9 · 1.21.10 · 1.21.11
CommandAPI-11.1.0-Paper.jar672.3 KBSHA-1 5ddbfece1208b240b2bf6d159d4b08e17529e5d5获取文件 CommandAPI-11.1.0-Paper.jar
展开更新日志

Minecraft Version Changes

  • Adds support for Minecraft 1.21.11

Bug Fixes

  • Fixes replacing a command by calling CommandAPI.unregister() not working under certain circumstances
  • Fixes custom namespaces not working
  • Fixes an issue where registering or unregistering many commands at runtime could time out the server

New Features

  • #642 Adds the enable-networking and the make-networking-exceptions-warning config options. You can read more about them in the documentation.

11.1.0

正式版
加载器
spigot
MC 版本
1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6 · 1.21 · 1.21.1 · 1.21.2 · 1.21.3 · 1.21.4 · 1.21.5 · 1.21.6 · 1.21.7 · 1.21.8 · 1.21.9 · 1.21.10 · 1.21.11
CommandAPI-11.1.0-Spigot.jar738.5 KBSHA-1 e564cacbdb8d27e06f5e4a224592318b9cf91950获取文件 CommandAPI-11.1.0-Spigot.jar
展开更新日志

Minecraft Version Changes

  • Adds support for Minecraft 1.21.11

Bug Fixes

  • Fixes replacing a command by calling CommandAPI.unregister() not working under certain circumstances
  • Fixes custom namespaces not working
  • Fixes an issue where registering or unregistering many commands at runtime could time out the server

New Features

  • #642 Adds the enable-networking and the make-networking-exceptions-warning config options. You can read more about them in the documentation.

11.1.0

正式版
加载器
velocity
MC 版本
1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6 · 1.21 · 1.21.1 · 1.21.2 · 1.21.3 · 1.21.4 · 1.21.5 · 1.21.6 · 1.21.7 · 1.21.8 · 1.21.9 · 1.21.10 · 1.21.11
CommandAPI-11.1.0-Velocity.jar208.8 KBSHA-1 50caa4cd963416d2f597b77e36fb5d6a8b3a6d6e获取文件 CommandAPI-11.1.0-Velocity.jar
展开更新日志

Minecraft Version Changes

  • Adds support for Minecraft 1.21.11

Bug Fixes

  • Fixes replacing a command by calling CommandAPI.unregister() not working under certain circumstances
  • Fixes custom namespaces not working
  • Fixes an issue where registering or unregistering many commands at runtime could time out the server

New Features

  • #642 Adds the enable-networking and the make-networking-exceptions-warning config options. You can read more about them in the documentation.

11.0.0

正式版
加载器
folia · paper
MC 版本
1.20.6 · 1.21 · 1.21.1 · 1.21.2 · 1.21.3 · 1.21.4 · 1.21.5 · 1.21.6 · 1.21.7 · 1.21.8 · 1.21.9
CommandAPI-11.0.0-Paper.jar645.7 KBSHA-1 1a46cf0cfc21cada28634ce9d8aa6b238e0b3e55获取文件 CommandAPI-11.0.0-Paper.jar
展开更新日志

Minecraft Version Changes

  • Adds support for Minecraft 1.21.9 and 1.21.10
  • Drops support for Minecraft 1.20.5 and below on Paper

Bug Fixes

  • #631 Fixes unregistered commands reappearing after a minecraft:reload. This comes with some other notable changes around command registrations and unregistrations. You can read about these on the command unregistration page in the documentation.
  • #608 The RecipeArgument no longer throws any exceptions on Spigot
  • #494, #503 Fixes the ConcurrentModificationException from happening when registering/unregistering commands at runtime

Module Changes

  • #414, #517 Splits up the CommandAPI into modules specific for Paper and Spigot:
  • Removes the commandapi-bukkit-shade module and the commandapi-bukkit-shade-mojang-mapped module
  • Adds the commandapi-paper-core and the commandapi-paper-shade modules which are made to work on Paper
  • Adds the commandapi-spigot-core and the commandapi-spigot-shade modules which are made to work on Spigot
  • Adds the commandapi-paper-test-toolkit and the commandapi-spigot-test-toolkit which are replacing commandapi-bukkit-test-toolkit for Paper and Spigot respectively
  • Moves and adds a few Kotlin DSL modules:
    • commandapi-core-kotlin -> commandapi-kotlin-core
    • commandapi-bukkit-kotlin -> commandapi-kotlin-bukkit
    • commandapi-velocity-kotlin -> commandapi-kotlin-velocity
    • Newly added: commandapi-kotlin-paper
    • Newly added: commandapi-kotlin-spigot

New features

  • On Paper it is now possible to register commands at bootstrap

API Changes

  • Changes the CommandAPIBukkitConfig class into an abstract one in favour of the newly added CommandAPIPaperConfig or CommandAPISpigotConfig classes, depending on the modules you use
  • The FloatRangeArgument has been renamed to DoubleRangeArgument and now returns a DoubleRange
  • The PlayerArgument and OfflinePlayerArgument have been replaced by the PlayerProfileArgument which returns a List<PlayerProfile>. The PlayerProfile class changes depending on if you are on Paper or on Spigot. Use the EntitySelectorArgument.OnePlayer if you want a Player object.
  • The AsyncOfflinePlayerArgument has been replaced by the AsyncPlayerProfileArgument
  • The ChatArgument, ChatComponentArgument and ChatColorArgument do no longer have any Adventure prefixes and return different types depending on the platform.
  • The ChatArgument returns a SignedMessage object on Paper. Also resolves #381
  • The BlockStateArgument now returns a BlockState object instead of a BlockData object

Config Changes

  • Replaces the use-latest-nms-version and be-lenient-for-minor-versions config options with a fallback-to-latest-nms config option:
    • When loading the CommandAPI and this config option is set to true it will first check if the current version is supported and chooses that
    • In case the current version isn't a supported version, the CommandAPI will choose the latest nms version available which might or might not work correctly
    • This config option is set to true by default on Paper and false on Spigot

11.0.0

正式版
加载器
spigot
MC 版本
1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6 · 1.21 · 1.21.1 · 1.21.2 · 1.21.3 · 1.21.4 · 1.21.5 · 1.21.6 · 1.21.7 · 1.21.8 · 1.21.9
CommandAPI-11.0.0-Spigot.jar703.6 KBSHA-1 c02fcc0bc6f02174f77afaacd9c12683ec42ad0e获取文件 CommandAPI-11.0.0-Spigot.jar
展开更新日志

Minecraft Version Changes

  • Adds support for Minecraft 1.21.9 and 1.21.10
  • Drops support for Minecraft 1.20.5 and below on Paper

Bug Fixes

  • #631 Fixes unregistered commands reappearing after a minecraft:reload. This comes with some other notable changes around command registrations and unregistrations. You can read about these on the command unregistration page in the documentation.
  • #608 The RecipeArgument no longer throws any exceptions on Spigot
  • #494, #503 Fixes the ConcurrentModificationException from happening when registering/unregistering commands at runtime

Module Changes

  • #414, #517 Splits up the CommandAPI into modules specific for Paper and Spigot:
  • Removes the commandapi-bukkit-shade module and the commandapi-bukkit-shade-mojang-mapped module
  • Adds the commandapi-paper-core and the commandapi-paper-shade modules which are made to work on Paper
  • Adds the commandapi-spigot-core and the commandapi-spigot-shade modules which are made to work on Spigot
  • Adds the commandapi-paper-test-toolkit and the commandapi-spigot-test-toolkit which are replacing commandapi-bukkit-test-toolkit for Paper and Spigot respectively
  • Moves and adds a few Kotlin DSL modules:
    • commandapi-core-kotlin -> commandapi-kotlin-core
    • commandapi-bukkit-kotlin -> commandapi-kotlin-bukkit
    • commandapi-velocity-kotlin -> commandapi-kotlin-velocity
    • Newly added: commandapi-kotlin-paper
    • Newly added: commandapi-kotlin-spigot

New features

  • On Paper it is now possible to register commands at bootstrap

API Changes

  • Changes the CommandAPIBukkitConfig class into an abstract one in favour of the newly added CommandAPIPaperConfig or CommandAPISpigotConfig classes, depending on the modules you use
  • The FloatRangeArgument has been renamed to DoubleRangeArgument and now returns a DoubleRange
  • The PlayerArgument and OfflinePlayerArgument have been replaced by the PlayerProfileArgument which returns a List<PlayerProfile>. The PlayerProfile class changes depending on if you are on Paper or on Spigot. Use the EntitySelectorArgument.OnePlayer if you want a Player object.
  • The AsyncOfflinePlayerArgument has been replaced by the AsyncPlayerProfileArgument
  • The ChatArgument, ChatComponentArgument and ChatColorArgument do no longer have any Adventure prefixes and return different types depending on the platform.
  • The ChatArgument returns a SignedMessage object on Paper. Also resolves #381
  • The BlockStateArgument now returns a BlockState object instead of a BlockData object

Config Changes

  • Replaces the use-latest-nms-version and be-lenient-for-minor-versions config options with a fallback-to-latest-nms config option:
    • When loading the CommandAPI and this config option is set to true it will first check if the current version is supported and chooses that
    • In case the current version isn't a supported version, the CommandAPI will choose the latest nms version available which might or might not work correctly
    • This config option is set to true by default on Paper and false on Spigot

11.0.0

正式版
加载器
velocity
MC 版本
1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6 · 1.21 · 1.21.1 · 1.21.2 · 1.21.3 · 1.21.4 · 1.21.5 · 1.21.6 · 1.21.7 · 1.21.8 · 1.21.9
CommandAPI-11.0.0-Velocity.jar207 KBSHA-1 bf73a2ac1f4cd089d265d01f8ea5d165205765fe获取文件 CommandAPI-11.0.0-Velocity.jar
展开更新日志

Minecraft Version Changes

  • Adds support for Minecraft 1.21.9 and 1.21.10
  • Drops support for Minecraft 1.20.5 and below on Paper

Bug Fixes

  • #631 Fixes unregistered commands reappearing after a minecraft:reload. This comes with some other notable changes around command registrations and unregistrations. You can read about these on the command unregistration page in the documentation.
  • #608 The RecipeArgument no longer throws any exceptions on Spigot
  • #494, #503 Fixes the ConcurrentModificationException from happening when registering/unregistering commands at runtime

Module Changes

  • #414, #517 Splits up the CommandAPI into modules specific for Paper and Spigot:
  • Removes the commandapi-bukkit-shade module and the commandapi-bukkit-shade-mojang-mapped module
  • Adds the commandapi-paper-core and the commandapi-paper-shade modules which are made to work on Paper
  • Adds the commandapi-spigot-core and the commandapi-spigot-shade modules which are made to work on Spigot
  • Adds the commandapi-paper-test-toolkit and the commandapi-spigot-test-toolkit which are replacing commandapi-bukkit-test-toolkit for Paper and Spigot respectively
  • Moves and adds a few Kotlin DSL modules:
    • commandapi-core-kotlin -> commandapi-kotlin-core
    • commandapi-bukkit-kotlin -> commandapi-kotlin-bukkit
    • commandapi-velocity-kotlin -> commandapi-kotlin-velocity
    • Newly added: commandapi-kotlin-paper
    • Newly added: commandapi-kotlin-spigot

New features

  • On Paper it is now possible to register commands at bootstrap

API Changes

  • Changes the CommandAPIBukkitConfig class into an abstract one in favour of the newly added CommandAPIPaperConfig or CommandAPISpigotConfig classes, depending on the modules you use
  • The FloatRangeArgument has been renamed to DoubleRangeArgument and now returns a DoubleRange
  • The PlayerArgument and OfflinePlayerArgument have been replaced by the PlayerProfileArgument which returns a List<PlayerProfile>. The PlayerProfile class changes depending on if you are on Paper or on Spigot. Use the EntitySelectorArgument.OnePlayer if you want a Player object.
  • The AsyncOfflinePlayerArgument has been replaced by the AsyncPlayerProfileArgument
  • The ChatArgument, ChatComponentArgument and ChatColorArgument do no longer have any Adventure prefixes and return different types depending on the platform.
  • The ChatArgument returns a SignedMessage object on Paper. Also resolves #381
  • The BlockStateArgument now returns a BlockState object instead of a BlockData object

Config Changes

  • Replaces the use-latest-nms-version and be-lenient-for-minor-versions config options with a fallback-to-latest-nms config option:
    • When loading the CommandAPI and this config option is set to true it will first check if the current version is supported and chooses that
    • In case the current version isn't a supported version, the CommandAPI will choose the latest nms version available which might or might not work correctly
    • This config option is set to true by default on Paper and false on Spigot

10.1.2

正式版
加载器
folia · paper
MC 版本
1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6 · 1.21 · 1.21.1 · 1.21.2 · 1.21.3 · 1.21.4 · 1.21.5 · 1.21.6 · 1.21.7 · 1.21.8
CommandAPI-10.1.2-Mojang-Mapped.jar651 KBSHA-1 1c71353561f47dd8b62ec82ec66025f861d5f747获取文件 CommandAPI-10.1.2-Mojang-Mapped.jar
展开更新日志

Minecraft version changes

  • Adds support for Minecraft 1.21.8

10.1.2

正式版
加载器
bukkit · spigot
MC 版本
1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6 · 1.21 · 1.21.1 · 1.21.2 · 1.21.3 · 1.21.4 · 1.21.5 · 1.21.6 · 1.21.7 · 1.21.8
CommandAPI-10.1.2.jar641.3 KBSHA-1 8a6ce6700e1851eecaf668759850c04df756d405获取文件 CommandAPI-10.1.2.jar
展开更新日志

Minecraft version changes

  • Adds support for Minecraft 1.21.8

10.1.1

正式版
加载器
folia · paper
MC 版本
1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6 · 1.21 · 1.21.1 · 1.21.2 · 1.21.3 · 1.21.4 · 1.21.5 · 1.21.6 · 1.21.7
CommandAPI-10.1.1-Mojang-Mapped.jar651 KBSHA-1 d8ed04bc9da41d3b5590bbd94d092dcffb7b0f82获取文件 CommandAPI-10.1.1-Mojang-Mapped.jar
展开更新日志

Minecraft version changes

  • Adds support for Minecraft 1.21.7

10.1.1

正式版
加载器
bukkit · spigot
MC 版本
1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6 · 1.21 · 1.21.1 · 1.21.2 · 1.21.3 · 1.21.4 · 1.21.5 · 1.21.6 · 1.21.7
CommandAPI-10.1.1.jar641.2 KBSHA-1 2ba73271992119f4574eaf76d647cfc3132cfee7获取文件 CommandAPI-10.1.1.jar
展开更新日志

Minecraft version changes

  • Adds support for Minecraft 1.21.7

10.1.0

正式版
加载器
folia · paper
MC 版本
1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6 · 1.21 · 1.21.1 · 1.21.2 · 1.21.3 · 1.21.4 · 1.21.5 · 1.21.6
CommandAPI-10.1.0-Mojang-Mapped.jar650.9 KBSHA-1 29788ea4e9cfff1fbbc7312ee5b2eb190d552756获取文件 CommandAPI-10.1.0-Mojang-Mapped.jar
展开更新日志

Minecraft version changes

  • Adds support for Minecraft 1.21.6

10.1.0

正式版
加载器
bukkit · spigot
MC 版本
1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6 · 1.21 · 1.21.1 · 1.21.2 · 1.21.3 · 1.21.4 · 1.21.5 · 1.21.6
CommandAPI-10.1.0.jar641.2 KBSHA-1 ba018c4c5cd8194462891f085c0179eec5056cb7获取文件 CommandAPI-10.1.0.jar
展开更新日志

Minecraft version changes

  • Adds support for Minecraft 1.21.6

10.1.0

正式版
加载器
velocity
MC 版本
1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6 · 1.21 · 1.21.1 · 1.21.2 · 1.21.3 · 1.21.4 · 1.21.5 · 1.21.6
CommandAPI-10.1.0-Velocity.jar207.9 KBSHA-1 126ebbbde3a6194c31582e86581555011c697da2获取文件 CommandAPI-10.1.0-Velocity.jar
展开更新日志

Minecraft version changes

  • Adds support for Minecraft 1.21.6

10.0.1

正式版
加载器
bukkit · paper · spigot
MC 版本
1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6 · 1.21 · 1.21.1 · 1.21.2 · 1.21.3 · 1.21.4 · 1.21.5
CommandAPI-10.0.1-Networking-Plugin.jar31 KBSHA-1 93b8880847bdeccc24ba5d27d0a207e420d72167获取文件 CommandAPI-10.0.1-Networking-Plugin.jar
展开更新日志

Bug fixes

  • Fixes command unregistration not working on Paper
  • #645 Ignore requirements for null senders

10.0.1

正式版
加载器
velocity
MC 版本
1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6 · 1.21 · 1.21.1 · 1.21.2 · 1.21.3 · 1.21.4 · 1.21.5
CommandAPI-10.0.1-Velocity.jar207.8 KBSHA-1 94506fec25e6a284b7f75d1e39581cb3b40aafa4获取文件 CommandAPI-10.0.1-Velocity.jar
展开更新日志

Bug fixes

  • Fixes command unregistration not working on Paper
  • #645 Ignore requirements for null senders

10.0.1

正式版
加载器
folia · paper
MC 版本
1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6 · 1.21 · 1.21.1 · 1.21.2 · 1.21.3 · 1.21.4 · 1.21.5
CommandAPI-10.0.1-Mojang-Mapped.jar620.8 KBSHA-1 ba55eefb9ab1236c5e15e46137a325440b62ba39获取文件 CommandAPI-10.0.1-Mojang-Mapped.jar
展开更新日志

Bug fixes

  • Fixes command unregistration not working on Paper
  • #645 Ignore requirements for null senders

10.0.1

正式版
加载器
bukkit · spigot
MC 版本
1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6 · 1.21 · 1.21.1 · 1.21.2 · 1.21.3 · 1.21.4 · 1.21.5
CommandAPI-10.0.1.jar611.9 KBSHA-1 aef2c270a941f13a7857724e232c68ae96ef88a6获取文件 CommandAPI-10.0.1.jar
展开更新日志

Bug fixes

  • Fixes command unregistration not working on Paper
  • #645 Ignore requirements for null senders

10.0.0

正式版
加载器
bukkit · paper · spigot
MC 版本
1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6 · 1.21 · 1.21.1 · 1.21.2 · 1.21.3 · 1.21.4 · 1.21.5
CommandAPI-10.0.0-Networking-Plugin.jar31 KBSHA-1 2d68828091826edadbe6659cbc3435d62ac04772获取文件 CommandAPI-10.0.0-Networking-Plugin.jar
展开更新日志

Minecraft Version Changes

  • Adds support for Minecraft 1.21.5
  • Drops support for Minecraft 1.16.5 - 1.19.4

Java Version Changes

  • Changes CommandAPI from Java 16 to Java 17 (LTS)

New features

  • #633 Adds an AsyncOfflinePlayerArgument to allow asynchronous fetching of an offline player

Bug fixes

  • #477 Fixed NativeProxyCommandSender not being able to run Vanilla (and CommandAPI) commands
  • #578, #583, #629 Fixes Bukkit#dispatchCommand() not working after Paper's Brigadier API changes
  • Fixes PotionEffectArgument.NamespacedKey not having suggestions in some versions

New changes

  • #636 The default namespace has been updated from minecraft to the plugin's name. If you are not shading, the default namespace is going to be commandapi. If you are shading, the default namespace is going to be your plugin's name.
  • Updates the config defaults for the datapack reloading step to be opt-in instead of opt-out.
  • The CommandAPI will now tell you if you've messed up mappings (in addition to spewing messy errors)
  • #634 Functions that use Component have now been changed to use ComponentLike
  • Added support for Velocity!

Website Changes

10.0.0

正式版
加载器
velocity
MC 版本
1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6 · 1.21 · 1.21.1 · 1.21.2 · 1.21.3 · 1.21.4 · 1.21.5
CommandAPI-10.0.0-Velocity.jar207.9 KBSHA-1 f10b492eb9b96f8ee0b8e45e0a9c8a19d4dd8510获取文件 CommandAPI-10.0.0-Velocity.jar
展开更新日志

Minecraft Version Changes

  • Adds support for Minecraft 1.21.5
  • Drops support for Minecraft 1.16.5 - 1.19.4

Java Version Changes

  • Changes CommandAPI from Java 16 to Java 17 (LTS)

New features

  • #633 Adds an AsyncOfflinePlayerArgument to allow asynchronous fetching of an offline player

Bug fixes

  • #477 Fixed NativeProxyCommandSender not being able to run Vanilla (and CommandAPI) commands
  • #578, #583, #629 Fixes Bukkit#dispatchCommand() not working after Paper's Brigadier API changes
  • Fixes PotionEffectArgument.NamespacedKey not having suggestions in some versions

New changes

  • #636 The default namespace has been updated from minecraft to the plugin's name. If you are not shading, the default namespace is going to be commandapi. If you are shading, the default namespace is going to be your plugin's name.
  • Updates the config defaults for the datapack reloading step to be opt-in instead of opt-out.
  • The CommandAPI will now tell you if you've messed up mappings (in addition to spewing messy errors)
  • #634 Functions that use Component have now been changed to use ComponentLike
  • Added support for Velocity!

Website Changes

10.0.0

正式版
加载器
folia · paper
MC 版本
1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6 · 1.21 · 1.21.1 · 1.21.2 · 1.21.3 · 1.21.4 · 1.21.5
CommandAPI-10.0.0-Mojang-Mapped.jar630.5 KBSHA-1 ed419bcc95799c323666aa40c06436fc09a45181获取文件 CommandAPI-10.0.0-Mojang-Mapped.jar
展开更新日志

Minecraft Version Changes

  • Adds support for Minecraft 1.21.5
  • Drops support for Minecraft 1.16.5 - 1.19.4

Java Version Changes

  • Changes CommandAPI from Java 16 to Java 17 (LTS)

New features

  • #633 Adds an AsyncOfflinePlayerArgument to allow asynchronous fetching of an offline player

Bug fixes

  • #477 Fixed NativeProxyCommandSender not being able to run Vanilla (and CommandAPI) commands
  • #578, #583, #629 Fixes Bukkit#dispatchCommand() not working after Paper's Brigadier API changes
  • Fixes PotionEffectArgument.NamespacedKey not having suggestions in some versions

New changes

  • #636 The default namespace has been updated from minecraft to the plugin's name. If you are not shading, the default namespace is going to be commandapi. If you are shading, the default namespace is going to be your plugin's name.
  • Updates the config defaults for the datapack reloading step to be opt-in instead of opt-out.
  • The CommandAPI will now tell you if you've messed up mappings (in addition to spewing messy errors)
  • #634 Functions that use Component have now been changed to use ComponentLike
  • Added support for Velocity!

Website Changes

10.0.0

正式版
加载器
bukkit · spigot
MC 版本
1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6 · 1.21 · 1.21.1 · 1.21.2 · 1.21.3 · 1.21.4 · 1.21.5
CommandAPI-10.0.0.jar621.5 KBSHA-1 4c35b6102c60537f7d1b88d501c6452be7928be8获取文件 CommandAPI-10.0.0.jar
展开更新日志

Minecraft Version Changes

  • Adds support for Minecraft 1.21.5
  • Drops support for Minecraft 1.16.5 - 1.19.4

Java Version Changes

  • Changes CommandAPI from Java 16 to Java 17 (LTS)

New features

  • #633 Adds an AsyncOfflinePlayerArgument to allow asynchronous fetching of an offline player

Bug fixes

  • #477 Fixed NativeProxyCommandSender not being able to run Vanilla (and CommandAPI) commands
  • #578, #583, #629 Fixes Bukkit#dispatchCommand() not working after Paper's Brigadier API changes
  • Fixes PotionEffectArgument.NamespacedKey not having suggestions in some versions

New changes

  • #636 The default namespace has been updated from minecraft to the plugin's name. If you are not shading, the default namespace is going to be commandapi. If you are shading, the default namespace is going to be your plugin's name.
  • Updates the config defaults for the datapack reloading step to be opt-in instead of opt-out.
  • The CommandAPI will now tell you if you've messed up mappings (in addition to spewing messy errors)
  • #634 Functions that use Component have now been changed to use ComponentLike
  • Added support for Velocity!

Website Changes

9.7.0

正式版
加载器
folia · paper
MC 版本
1.16.5 · 1.17 · 1.17.1 · 1.18 · 1.18.1 · 1.18.2 · 1.19 · 1.19.1 · 1.19.2 · 1.19.3 · 1.19.4 · 1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6 · 1.21 · 1.21.1 · 1.21.2 · 1.21.3 · 1.21.4
CommandAPI-9.7.0-Mojang-Mapped.jar755.2 KBSHA-1 e81f4b3e959a8b3ff9e571d89adfe5fc53602787获取文件 CommandAPI-9.7.0-Mojang-Mapped.jar
展开更新日志

Minecraft version changes

  • Adds support for Minecraft 1.21.4

New features

  • #575 Adds a NMS independent test toolkit to allow developers to test their commands with MockBukkit
  • #613 Adds a thenNested method for CommandTrees to reduce nesting in code

9.7.0

正式版
加载器
bukkit · spigot
MC 版本
1.16.5 · 1.17 · 1.17.1 · 1.18 · 1.18.1 · 1.18.2 · 1.19 · 1.19.1 · 1.19.2 · 1.19.3 · 1.19.4 · 1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6 · 1.21 · 1.21.1 · 1.21.2 · 1.21.3 · 1.21.4
CommandAPI-9.7.0.jar742.3 KBSHA-1 af68a7d157bfd28c3f13914f61d80523f5b95788获取文件 CommandAPI-9.7.0.jar
展开更新日志

Minecraft version changes

  • Adds support for Minecraft 1.21.4

New features

  • #575 Adds a NMS independent test toolkit to allow developers to test their commands with MockBukkit
  • #613 Adds a thenNested method for CommandTrees to reduce nesting in code

9.6.1

正式版
加载器
folia · paper
MC 版本
1.16.5 · 1.17 · 1.17.1 · 1.18 · 1.18.1 · 1.18.2 · 1.19 · 1.19.1 · 1.19.2 · 1.19.3 · 1.19.4 · 1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6 · 1.21 · 1.21.1 · 1.21.2 · 1.21.3
CommandAPI-9.6.1-Mojang-Mapped.jar727.1 KBSHA-1 f6c51b36245bcb3b254d57854474bc77920ac89c获取文件 CommandAPI-9.6.1-Mojang-Mapped.jar
展开更新日志

Bug fixes

  • Fixes Mojang-Mapped version not working on Paper

9.6.0

正式版
加载器
folia · paper
MC 版本
1.16.5 · 1.17 · 1.17.1 · 1.18 · 1.18.1 · 1.18.2 · 1.19 · 1.19.1 · 1.19.2 · 1.19.3 · 1.19.4 · 1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6 · 1.21 · 1.21.1 · 1.21.2 · 1.21.3
CommandAPI-9.6.0-Mojang-Mapped.jar727.1 KBSHA-1 11f8fc6e176d0b2e6a9a431cc1557e6203aaba11获取文件 CommandAPI-9.6.0-Mojang-Mapped.jar
展开更新日志

Minecraft Version Changes

  • Adds support for Minecraft 1.21.2 and 1.21.3

New improvements

  • #594 Adds a config option to allow the CommandAPI to be more lenient when updating to a new minor version (e.g. from 1.21 to 1.21.1)
  • #596, #605 The plugin's config.yml file will be updated when config options are added or removed

9.6.0

正式版
加载器
bukkit · spigot
MC 版本
1.16.5 · 1.17 · 1.17.1 · 1.18 · 1.18.1 · 1.18.2 · 1.19 · 1.19.1 · 1.19.2 · 1.19.3 · 1.19.4 · 1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6 · 1.21 · 1.21.1 · 1.21.2 · 1.21.3
CommandAPI-9.6.0.jar715.1 KBSHA-1 d71f60f36f2e20729232e4cddbdc876197b84e86获取文件 CommandAPI-9.6.0.jar
展开更新日志

Minecraft Version Changes

  • Adds support for Minecraft 1.21.2 and 1.21.3

New improvements

  • #594 Adds a config option to allow the CommandAPI to be more lenient when updating to a new minor version (e.g. from 1.21 to 1.21.1)
  • #596, #605 The plugin's config.yml file will be updated when config options are added or removed

9.5.3

正式版
加载器
folia · paper
MC 版本
1.16.5 · 1.17 · 1.17.1 · 1.18 · 1.18.1 · 1.18.2 · 1.19 · 1.19.1 · 1.19.2 · 1.19.3 · 1.19.4 · 1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6 · 1.21 · 1.21.1
CommandAPI-9.5.3-Mojang-Mapped.jar683.8 KBSHA-1 4180b6f3cf8da17f481b4d7fa23bf41e5db758b7获取文件 CommandAPI-9.5.3-Mojang-Mapped.jar
展开更新日志

Bug fixes

  • Fixes Folia startup error due to scheduling a task with a delay of 0

9.5.3

正式版
加载器
bukkit · spigot
MC 版本
1.16.5 · 1.17 · 1.17.1 · 1.18 · 1.18.1 · 1.18.2 · 1.19 · 1.19.1 · 1.19.2 · 1.19.3 · 1.19.4 · 1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6 · 1.21 · 1.21.1
CommandAPI-9.5.3.jar672.7 KBSHA-1 4fb66578fdc48ae3e13da5ead329825f4be89d86获取文件 CommandAPI-9.5.3.jar
CommandAPI-9.5.3-Mojang-Mapped.jar683.8 KBSHA-1 4180b6f3cf8da17f481b4d7fa23bf41e5db758b7获取文件 CommandAPI-9.5.3-Mojang-Mapped.jar
展开更新日志

Bug fixes

  • Fixes Folia startup error due to scheduling a task with a delay of 0

9.5.2

正式版
加载器
bukkit · folia · paper · spigot
MC 版本
1.16.5 · 1.17 · 1.17.1 · 1.18 · 1.18.1 · 1.18.2 · 1.19 · 1.19.1 · 1.19.2 · 1.19.3 · 1.19.4 · 1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6 · 1.21 · 1.21.1
CommandAPI-9.5.2.jar672.6 KBSHA-1 5e29450e0dd8c8e97e05898ef521cbf6096893f1获取文件 CommandAPI-9.5.2.jar
CommandAPI-9.5.2-Mojang-Mapped.jar683.7 KBSHA-1 97b306d00bdc6a45a7b0cca460d312f4e07da7b1获取文件 CommandAPI-9.5.2-Mojang-Mapped.jar
展开更新日志

Minecraft version changes

  • Adds support for Minecraft 1.21.1

Bug fixes

  • #588 Fix Folia scheduling methods using the wrong scheduler implementation
  • #580 Fix running a non-vanilla command on paper in Minecraft functions with the CommandAPI throwing runtime exceptions
  • Fix namespaces not being propagated when registering subcommands

New features

  • #577 Adds a CommandAPIBukkit#failWithAdventureComponent(ComponentLike) method

9.5.1

正式版
加载器
bukkit · folia · paper · spigot
MC 版本
1.16.5 · 1.17 · 1.17.1 · 1.18 · 1.18.1 · 1.18.2 · 1.19 · 1.19.1 · 1.19.2 · 1.19.3 · 1.19.4 · 1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6 · 1.21
CommandAPI-9.5.1.jar671.6 KBSHA-1 15df76447ed18c7474c81b27544a57f3649f205e获取文件 CommandAPI-9.5.1.jar
CommandAPI-9.5.1-Mojang-Mapped.jar682.7 KBSHA-1 8f622a703183cd7f1b2fd344f0859426b2631aae获取文件 CommandAPI-9.5.1-Mojang-Mapped.jar
展开更新日志

Bug fixes

  • Fixes the CommandAPI not loading correctly on Paper 1.21

9.5.0

正式版
加载器
bukkit · folia · paper · spigot
MC 版本
1.16.5 · 1.17 · 1.17.1 · 1.18 · 1.18.1 · 1.18.2 · 1.19 · 1.19.1 · 1.19.2 · 1.19.3 · 1.19.4 · 1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6 · 1.21
CommandAPI-9.5.0.jar671.6 KBSHA-1 853f259402db85388a1e600861a9b6e1d64c0768获取文件 CommandAPI-9.5.0.jar
CommandAPI-9.5.0-Mojang-Mapped.jar682.8 KBSHA-1 ba31a42f501d039e0bf5861ab5c7aaafbe155e87获取文件 CommandAPI-9.5.0-Mojang-Mapped.jar
展开更新日志

Minecraft version changes

  • Adds support for Minecraft 1.21
  • Drops support for Minecraft 1.16.1, 1.16.2, 1.16.3 and 1.16.4

Bug fixes

  • Fixes ResourceLocationArgument not working in 1.20.5 and 1.20.6
  • Fixes /minecraft:reload deleting commands on Paper 1.20.6 (build 65+)

9.4.2

正式版
加载器
bukkit · folia · paper · spigot
MC 版本
1.16.5 · 1.17 · 1.17.1 · 1.18 · 1.18.1 · 1.18.2 · 1.19 · 1.19.1 · 1.19.2 · 1.19.3 · 1.19.4 · 1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6
CommandAPI-9.4.2.jar687 KBSHA-1 403df494bc416b44d66f56351dcab9935719774e获取文件 CommandAPI-9.4.2.jar
CommandAPI-9.4.2-Mojang-Mapped.jar697.5 KBSHA-1 6c4038a592018d261b4a0eba31a1ea762cb9166e获取文件 CommandAPI-9.4.2-Mojang-Mapped.jar
展开更新日志

Bug fixes

  • #554 Fixes the CommandAPI failing to run on Paper build 64+

9.4.1

正式版
加载器
bukkit · folia · paper · spigot
MC 版本
1.16.5 · 1.17 · 1.17.1 · 1.18 · 1.18.1 · 1.18.2 · 1.19 · 1.19.1 · 1.19.2 · 1.19.3 · 1.19.4 · 1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6
CommandAPI-9.4.1.jar686.6 KBSHA-1 dfd411677815f16d5485520cc9150ab5b5a0d0b9获取文件 CommandAPI-9.4.1.jar
CommandAPI-9.4.1-Mojang-Mapped.jar697.1 KBSHA-1 f587f94160566a6d937314af01ce9d3df78d8177获取文件 CommandAPI-9.4.1-Mojang-Mapped.jar
展开更新日志

Bug fixes

  • #551 Fixes mojang-mapped versions of the CommandAPI causing errors in certain Minecraft versions

New features

  • #552 Adds a configuration option to disable datapack reloading on server load

9.4.0

正式版
加载器
bukkit · folia · paper · spigot
MC 版本
1.16.5 · 1.17 · 1.17.1 · 1.18 · 1.18.1 · 1.18.2 · 1.19 · 1.19.1 · 1.19.2 · 1.19.3 · 1.19.4 · 1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4 · 1.20.5 · 1.20.6
CommandAPI-9.4.0.jar685.9 KBSHA-1 723fec9c5239f62972c7d68aec1299a29575e5b3获取文件 CommandAPI-9.4.0.jar
CommandAPI-9.4.0-Mojang-Mapped.jar694.8 KBSHA-1 557f6dfc4c177654d6497639541fad53f40a267a获取文件 CommandAPI-9.4.0-Mojang-Mapped.jar
展开更新日志

Minecraft version changes

  • Adds support for Minecraft 1.20.5 and 1.20.6
  • Drops support for Minecraft 1.15.x

Bug fixes

  • Fixed implementation issues with FunctionArgument from 9.3.0
  • #536, #537 Fixed MultiLiteralArgument help displaying the node name instead of the literal text
  • #524 Fixes CommandAPIBukkit.get().getTags() erroring in 1.20.4

New features

  • #540 Add methods to "safe-cast" arguments to CommandArguments
  • #495 Adds a parameter to EntitySelectorArgument to allow failure when no entity lists are empty
  • #367, #509 Adds the ability to register commands with a custom namespace
  • #523 Exposed more details of the CommandPermission
  • #490 Adds support for Mojang-mapped servers via the CommandAPI config
  • #541 Adds support for a NamespacedKey variant for the PotionEffectArgument

9.3.0

正式版
加载器
bukkit · folia · paper · spigot
MC 版本
1.15 · 1.15.1 · 1.15.2 · 1.16 · 1.16.1 · 1.16.2 · 1.16.3 · 1.16.4 · 1.16.5 · 1.17 · 1.17.1 · 1.18 · 1.18.1 · 1.18.2 · 1.19 · 1.19.1 · 1.19.2 · 1.19.3 · 1.19.4 · 1.20 · 1.20.1 · 1.20.2 · 1.20.3 · 1.20.4
CommandAPI-9.3.0.jar784 KBSHA-1 d98a93920612305c558191a128967cd9afaa0a04获取文件 CommandAPI-9.3.0.jar
展开更新日志

Minecraft version changes

  • Adds support for Minecraft 1.20.3 and 1.20.4

Bug fixes

  • Fixed bug where calling SimpleFunctionWrapper.getTag() on 1.19+ would throw an error
  • #499 Fix typo in Adventure methods for tooltips
  • Fixed executesFeedbackForwarding() not checking for a FeedbackForwardingCommandSender correctly thus allowing every executor to execute the command
  • #473 Fix RGB colors in CustomArgument.CustomArgumentException#fromString creating the wrong colors

New features

  • Adds ExecutionInfo executors for the Kotlin DSL
  • #497 Adds support for RemoteConsoleCommandSender

Known issues

  • Functions generated by the FunctionArgument will always return a value of 1 when executed, regardless if the function succeeds, fails or returns a result
  • Functions generated by the FunctionArgument will always return an empty array of commands when you retrieve the list of commands in that function

9.2.0

正式版
加载器
bukkit · folia · paper · spigot
MC 版本
1.15 · 1.15.1 · 1.15.2 · 1.16 · 1.16.1 · 1.16.2 · 1.16.3 · 1.16.4 · 1.16.5 · 1.17 · 1.17.1 · 1.18 · 1.18.1 · 1.18.2 · 1.19 · 1.19.1 · 1.19.2 · 1.19.3 · 1.19.4 · 1.20 · 1.20.1 · 1.20.2
CommandAPI-9.2.0.jar754 KBSHA-1 3a90cc197fb1db70dfd609d1d7dfd92861c238f5获取文件 CommandAPI-9.2.0.jar
展开更新日志

New features

  • #487 Added support for disabling integer centering for location arguments
  • #482 Adds Kotlin DSL support for delegated properties

Bug fixes

  • #488 Fixed calling CommandAPI commands with Bukkit.createCommandSender() not working on paper
  • Fixed a bug where the CommandAPI would throw errors when unregistering commands when a command exists with a : at the end of its name

Minecraft version changes

  • Adds support for 1.20.2

9.1.0

正式版
加载器
bukkit · folia · paper · spigot
MC 版本
1.15 · 1.15.1 · 1.15.2 · 1.16 · 1.16.1 · 1.16.2 · 1.16.3 · 1.16.4 · 1.16.5 · 1.17 · 1.17.1 · 1.18 · 1.18.1 · 1.18.2 · 1.19 · 1.19.1 · 1.19.2 · 1.19.3 · 1.19.4 · 1.20 · 1.20.1
CommandAPI-9.1.0.jar722.1 KBSHA-1 e42860a4b0096397d4b749dd4215b8e10988f277获取文件 CommandAPI-9.1.0.jar
展开更新日志

New features

  • #459 Added the ability to access raw arguments in the command executor
  • #469 Adds AdventureChatColorArgument
  • #417 Added the ability for commands to be registered and unregistered while the server is running

Bug fixes

  • Fixes the CommandAPI disabling datapacks on 1.20.1 Paper servers because it thought it was running on a Folia server

9.0.3

正式版
加载器
bukkit · folia · paper · spigot
MC 版本
1.15 · 1.15.1 · 1.15.2 · 1.16 · 1.16.1 · 1.16.2 · 1.16.3 · 1.16.4 · 1.16.5 · 1.17 · 1.17.1 · 1.18 · 1.18.1 · 1.18.2 · 1.19 · 1.19.1 · 1.19.2 · 1.19.3 · 1.19.4 · 1.20 · 1.20.1
CommandAPI-9.0.3.jar714.4 KBSHA-1 a4a35f4716c69f577ff06ad57f85665c2deb7f2c获取文件 CommandAPI-9.0.3.jar
展开更新日志

Minecraft version changes

  • Adds support for 1.20.1

New features

  • #455 Reworked the MapArgument with various features, including:
    • Optional quotes around keys and values
    • No restriction on the characters that are allowed in a key (previously only letters, digits, and underscore)
    • May define a String separator between key-value pairs (instead of just space)

Bug fixes

  • Fixes use-latest-nms-version not pointing to the right version

9.0.2

正式版
加载器
bukkit · folia · paper · spigot
MC 版本
1.15 · 1.15.1 · 1.15.2 · 1.16 · 1.16.1 · 1.16.2 · 1.16.3 · 1.16.4 · 1.16.5 · 1.17 · 1.17.1 · 1.18 · 1.18.1 · 1.18.2 · 1.19 · 1.19.1 · 1.19.2 · 1.19.3 · 1.19.4 · 1.20
CommandAPI-9.0.2.jar713.4 KBSHA-1 bcef55322d129aa7e60d89c536b3a0f7f8fa8c73获取文件 CommandAPI-9.0.2.jar
展开更新日志

Minecraft version changes

  • Adds support for Minecraft 1.20

New features

  • Adds the ability to retrieve LiteralArguments and MultiLiteralArguments by their node names
  • #363 Adds withUsage() method to customise command usage info
  • #371 Updates default short description to now mention the plugin creating the command

Bug fixes

  • Fixed literal arguments in command conversion causing errors due to parsing problems

9.0.1

正式版
加载器
bukkit · folia · paper · spigot
MC 版本
1.15 · 1.15.1 · 1.15.2 · 1.16 · 1.16.1 · 1.16.2 · 1.16.3 · 1.16.4 · 1.16.5 · 1.17 · 1.17.1 · 1.18 · 1.18.1 · 1.18.2 · 1.19 · 1.19.1 · 1.19.2 · 1.19.3 · 1.19.4
CommandAPI-9.0.1.jar690.4 KBSHA-1 b2eb0508415ee1a817e21e0586d25ea8b0f578b3获取文件 CommandAPI-9.0.1.jar
展开更新日志

Bug fixes

  • Fixed MapArgument not allowing player names as keys because we forgot to allow the _ character
  • Fixed /execute as ... not working because we were casting to a player instead of a proxied sender
  • Fixed IntegerArgument failing to compile in certain circumstances

New features

  • Added CommandArguments.count() utility method to get the number of arguments
  • Added CommandArguments.getOptional() methods
  • Added CustomArgumentException static factory methods to accept Spigot/Paper text components

Platform support changes

  • Added basic support for Folia

9.0.0

正式版
加载器
bukkit · paper · spigot
MC 版本
1.15 · 1.15.1 · 1.15.2 · 1.16 · 1.16.1 · 1.16.2 · 1.16.3 · 1.16.4 · 1.16.5 · 1.17 · 1.17.1 · 1.18 · 1.18.1 · 1.18.2 · 1.19 · 1.19.1 · 1.19.2 · 1.19.3 · 1.19.4
CommandAPI-9.0.0.jar687.8 KBSHA-1 a6decf668bc1d69cea7e73f75876435bc9560d21获取文件 CommandAPI-9.0.0.jar
展开更新日志

⚠️ This version is incompatible with any plugin that used the CommandAPI version 8.X.X or below! (See documentation for more information)

New features

  • #360, #369 Made executor methods now use CommandArguments to allow for accessing arguments by name instead of index
  • #162, #387, #393 Added optional arguments
  • #388 Added new hook-paper-reload config option to toggle whether the CommandAPI hooks into /minecraft:reload
  • Reworked the implementation of ItemArgument, so the ItemStack count is correctly reflected and ItemMeta is properly assigned
  • Made the TeamArgument return a Team instead of a String
  • Made the ObjectiveArgument return a Objective instead of a String
  • #391 Made the CommandAPI only complain about commands registered in a plugin.yml if this plugin.yml belongs to the plugin calling the CommandAPI
  • #422 Added a way to access the raw command a player typed from the executor
  • #431 Added a way to access more info to construct lists for the ListArgumentBuilder
  • Added support for sidebar team colors using an enum for ScoreboardSlot

Kotlin DSL changes

  • Implemented resulting executors
  • Implemented the FunctionArgument
  • Several improvements for the CommandAPICommand DSL

Bug fixes

  • Fixed commandapi-preprocessor appearing in the plugin and shaded jar file
  • #390 Fixed .executesNative()'s CommandSender's getLocation() method returning the wrong pitch and yaw
  • Fixed tags showing up in the BiomeArgument when they shouldn't have been doing so
  • Fixed LocationArgument with BLOCK_POSITION not returning locations in unloaded chunks
  • Fixed IntegerRangeArgument and FloatRangeArgument not working on Minecraft 1.16.4 and 1.16.5
  • Fixed RecipeArgument not working on Minecraft 1.17
  • Fixed TeamArgument not working on Minecraft 1.17
  • Fixed AdventureChatArgument not working on Minecraft 1.17
  • Fixed commands with no executors not being caught by the CommandAPI
  • Fixed ParticleArgument producing "Invalid particle data type" warnings on Minecraft 1.16.5 and below
  • Fixed FunctionArgument not working on Minecraft 1.17.x and 1.18.x
  • Fixed NamespacedKeyArgument not working on Minecraft 1.18
  • Fixed the FunctionArgument not correctly retrieving datapack (function) tags in 1.17+
  • Removed some redundant vibration particle handling code that would never be run under any circumstances

Documentation changes

  • #384 Fixed various particle data not being documented for the ParticleArgument documentation page
  • Fixed broken links in the documentation (using Michael-F-Bryan/mdbook-linkcheck)
  • Refactored documentation argument page names for consistency
  • Added Kotlin DSL examples

Other changes

  • Removed all previously deprecated constructors, classes and methods
  • Completely refactored the entire CommandAPI project to help support other platforms
  • Added a live dev build of the documentation at commandapi-live-docs.jorel.dev
  • Improved mobile support for the CommandAPI home page
  • Added the CommandAPI's Modrinth link to the CommandAPI home page
  • Dropped support for Minecraft 1.13 - 1.14.4. Please use an older version of the CommandAPI, or raise an issue on GitHub to bring back support for these versions

8.8.0

正式版
加载器
bukkit · paper · spigot
MC 版本
1.13 · 1.13.1 · 1.13.2 · 1.14 · 1.14.1 · 1.14.2 · 1.14.3 · 1.14.4 · 1.15 · 1.15.1 · 1.15.2 · 1.16 · 1.16.1 · 1.16.2 · 1.16.3 · 1.16.4 · 1.16.5 · 1.17 · 1.17.1 · 1.18 · 1.18.1 · 1.18.2 · 1.19 · 1.19.1 · 1.19.2 · 1.19.3 · 1.19.4
CommandAPI-8.8.0.jar703.4 KBSHA-1 95548a531c6725fd74a5d984f747f99bbcfa79f5获取文件 CommandAPI-8.8.0.jar
展开更新日志

New improvements from 8.7.6:

  • Adds support for Minecraft 1.19.4

8.7.6

正式版
加载器
bukkit · paper · spigot
MC 版本
1.13 · 1.13.1 · 1.13.2 · 1.14 · 1.14.1 · 1.14.2 · 1.14.3 · 1.14.4 · 1.15 · 1.15.1 · 1.15.2 · 1.16 · 1.16.1 · 1.16.2 · 1.16.3 · 1.16.4 · 1.16.5 · 1.17 · 1.17.1 · 1.18 · 1.18.1 · 1.18.2 · 1.19 · 1.19.1 · 1.19.2 · 1.19.3
CommandAPI-8.7.6.jar682.5 KBSHA-1 5845e9856790fa4ca9529bf9af443936cc830079获取文件 CommandAPI-8.7.6.jar
展开更新日志

New improvements from 8.7.5:

  • Fixes NullPointerException that occurs rarely in the CommandAPI's post-loading step

8.7.5

正式版
加载器
bukkit · paper · spigot
MC 版本
1.13 · 1.13.1 · 1.13.2 · 1.14 · 1.14.1 · 1.14.2 · 1.14.3 · 1.14.4 · 1.15 · 1.15.1 · 1.15.2 · 1.16 · 1.16.1 · 1.16.2 · 1.16.3 · 1.16.4 · 1.16.5 · 1.17 · 1.17.1 · 1.18 · 1.18.1 · 1.18.2 · 1.19 · 1.19.1 · 1.19.2 · 1.19.3
CommandAPI-8.7.5.jar682.3 KBSHA-1 4035a1982668e97e477cefb1d9b140d04142ab87获取文件 CommandAPI-8.7.5.jar
展开更新日志

New improvements from 8.7.3:

  • Fixed @AWorldArgument not being processed properly by the annotation system
  • Fixed LootTableArgument not working in 1.17 - 1.19.3

8.7.3

正式版
加载器
bukkit · paper · spigot
MC 版本
1.13 · 1.13.1 · 1.13.2 · 1.14 · 1.14.1 · 1.14.2 · 1.14.3 · 1.14.4 · 1.15 · 1.15.1 · 1.15.2 · 1.16 · 1.16.1 · 1.16.2 · 1.16.3 · 1.16.4 · 1.16.5 · 1.17 · 1.17.1 · 1.18 · 1.18.1 · 1.18.2 · 1.19 · 1.19.1 · 1.19.2 · 1.19.3
CommandAPI-8.7.3.jar678.7 KBSHA-1 fa1f39bc173056cb3146248ffd4ba247d17a2061获取文件 CommandAPI-8.7.3.jar
展开更新日志

New improvements from 8.7.2:

  • #397 Fixed issue where the WorldArgument wouldn't work in 1.16.5

8.7.2

正式版
加载器
bukkit · paper · spigot
MC 版本
1.13 · 1.13.1 · 1.13.2 · 1.14 · 1.14.1 · 1.14.2 · 1.14.3 · 1.14.4 · 1.15 · 1.15.1 · 1.15.2 · 1.16 · 1.16.1 · 1.16.2 · 1.16.3 · 1.16.4 · 1.16.5 · 1.17 · 1.17.1 · 1.18 · 1.18.1 · 1.18.2 · 1.19 · 1.19.1 · 1.19.2 · 1.19.3
CommandAPI-8.7.2.jar678.7 KBSHA-1 1d01f6bb8c84d00b2ac20c57f548cbabc5e9c2e8获取文件 CommandAPI-8.7.2.jar
展开更新日志

New improvements from 8.7.1:

  • Hotfixed issue where various arguments wouldn't work in 1.19.3 (function, recipe, sound, advancement, biome, entities, loot table)
  • Fixed issue where the WorldArgument wouldn't work in 1.19.3

8.7.1

正式版
加载器
bukkit · paper · spigot
MC 版本
1.13 · 1.13.1 · 1.13.2 · 1.14 · 1.14.1 · 1.14.2 · 1.14.3 · 1.14.4 · 1.15 · 1.15.1 · 1.15.2 · 1.16 · 1.16.1 · 1.16.2 · 1.16.3 · 1.16.4 · 1.16.5 · 1.17 · 1.17.1 · 1.18 · 1.18.1 · 1.18.2 · 1.19 · 1.19.1 · 1.19.2 · 1.19.3
CommandAPI-8.7.1.jar676.7 KBSHA-1 f566454761a619687c00e420b5497c1cb97c9965获取文件 CommandAPI-8.7.1.jar
展开更新日志

New improvements from 8.7.0:

  • Fixed ParticleArgument not working in 1.19.3
  • Fixed EnchantmentArgument not working in 1.19.3 -Hotfixed a permission check bug when permissions are incorrectly initialized
  • Hotfixed a null pointer exception when autocompletion occurs via redirected commands
  • Fixed JavaDocs not showing in your IDE when using commandapi-shade

8.7.0

正式版
加载器
bukkit · paper · spigot
MC 版本
1.13 · 1.13.1 · 1.13.2 · 1.14 · 1.14.1 · 1.14.2 · 1.14.3 · 1.14.4 · 1.15 · 1.15.1 · 1.15.2 · 1.16 · 1.16.1 · 1.16.2 · 1.16.3 · 1.16.4 · 1.16.5 · 1.17 · 1.17.1 · 1.18 · 1.18.1 · 1.18.2 · 1.19 · 1.19.1 · 1.19.2 · 1.19.3
CommandAPI-8.7.0.jar676.5 KBSHA-1 93dea42c8e3634305dc6135e63284c54897a1d25获取文件 CommandAPI-8.7.0.jar
展开更新日志

New improvements from 8.6.0:

  • Adds support for Minecraft 1.19.3
  • Removes the need for generics and argumenttype parameters for certain arguments

8.6.0

正式版
加载器
bukkit · paper · spigot
MC 版本
1.13 · 1.13.1 · 1.13.2 · 1.14 · 1.14.1 · 1.14.2 · 1.14.3 · 1.14.4 · 1.15 · 1.15.1 · 1.15.2 · 1.16 · 1.16.1 · 1.16.2 · 1.16.3 · 1.16.4 · 1.16.5 · 1.17 · 1.17.1 · 1.18 · 1.18.1 · 1.18.2 · 1.19 · 1.19.1 · 1.19.2
CommandAPI-8.6.0.jar644.6 KBSHA-1 a8b9e7c20731024cc6f0a35fd4da3928d54f8ff8获取文件 CommandAPI-8.6.0.jar
展开更新日志

New improvements from 8.5.1:

  • #307 Adds a CommandArgument to let users submit commands as an argument
  • #334 Adds support for chat components in CommandAPI.fail()
  • #338 Adds a way to clone a CommandAPICommand instance using instance.copy()
  • #351 Adds support for a ListArgument with the TextArgument backend, to allow inline lists
  • #358 Adds a new WorldArgument argument that lets you get a list of Minecraft dimensions
  • Adds support for SoundArgument to return string-based sounds via the NamespacedKey
  • #352 Adds some helper methods to the LiteralArgument to make it easier to use via a static import
  • #357 Adds a Kotlin DSL to register commands in Kotlin!

8.5.1

正式版
加载器
bukkit · paper · spigot
MC 版本
1.13 · 1.13.1 · 1.13.2 · 1.14 · 1.14.1 · 1.14.2 · 1.14.3 · 1.14.4 · 1.15 · 1.15.1 · 1.15.2 · 1.16 · 1.16.1 · 1.16.2 · 1.16.3 · 1.16.4 · 1.16.5 · 1.17 · 1.17.1 · 1.18 · 1.18.1 · 1.18.2 · 1.19 · 1.19.1 · 1.19.2
CommandAPI-8.5.1.jar611.7 KBSHA-1 5614bde75e3ceeb4a8caee500f37cd4ea891c7d5获取文件 CommandAPI-8.5.1.jar
展开更新日志

New improvements from 8.5.0:

  • Adds support for Minecraft 1.19.2
  • Fixes bug with players being kicked when using chat preview with colors on 1.19+
  • Prevents developers creating dodgy commands with duplicate argument node names that caused clients to crash when they tried - to run those commands
  • Fix subcommand internal information being overwritten at runtime when the parent command was registered
  • Fixes time arguments not working in 1.17+
  • Fixes namespaced key arguments not working in 1.17
  • Fixes commands not working in 1.17 and 1.18
  • Fixes server reloading on Spigot throwing asynchronous-related exceptions
  • Fixes argument suggestions not working if a subcommand's node name is the same as the argument's node name
  • Improves backend code for chatcolor, enchantment and potion arguments in 1.17+
  • Optimize code size for 1.19+
  • Improves list arguments to only display suggestions for the last item and prevent list arguments accepting unlisted items