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 becommandapi
. 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 useComponentLike
- Added support for Velocity!
Website Changes
- The CommandAPI's new homepage is https://commandapi.dev/ (currently points to the documentation)
- Documentation has moved over to https://docs.commandapi.dev/
- JavaDocs have moved over to https://javadocs.commandapi.dev/
- The CommandAPI has moved from
github.com/JorelAli/CommandAPI
to its own organization over atgithub.com/CommandAPI/CommandAPI
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
Bug fixes
- #554 Fixes the CommandAPI failing to run on Paper build 64+
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 thePotionEffectArgument
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 aFeedbackForwardingCommandSender
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 of1
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
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
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