基本信息
我的世界Java版本
1.21.x
1.20.x
1.19.x
1.18.x
1.17.x
1.16.x
1.15.x
1.14.x
1.13.x
平台
Bukkit
运行环境
其他链接
搬运团队
搬运资源声明
对于可进行 JAR 文件搬运的许可证,我们提供站内下载服务;其他资源会跳转到原帖下载。资源更新可能不及时,建议前往资源内提供的原帖链接下载最新版本。
详情信息
许可证 MIT
发布于 a year ago
更新于 12 days ago
更新日志
Minecraft 版本变更
- 添加对 Minecraft 1.21.9 和 1.21.10 的支持
- 停止支持 Paper 平台上的 Minecraft 1.20.5 及更早版本
修复内容
- #631 修复了在执行
minecraft:reload后已注销的命令重新出现的问题。此修复还带来了一些关于命令注册与注销的重要变更,详情请参阅文档中的命令注销页面。 - #608 修复了 Spigot 上
RecipeArgument抛出异常的问题 - #494、#503 修复了在运行时注册/注销命令时可能发生的
ConcurrentModificationException
模块变更
- #414、#517 将 CommandAPI 拆分为针对 Paper 和 Spigot 的独立模块:
- 移除
commandapi-bukkit-shade模块和commandapi-bukkit-shade-mojang-mapped模块 - 新增专用于 Paper 的
commandapi-paper-core和commandapi-paper-shade模块 - 新增专用于 Spigot 的
commandapi-spigot-core和commandapi-spigot-shade模块 - 新增
commandapi-paper-test-toolkit和commandapi-spigot-test-toolkit,分别取代原有的commandapi-bukkit-test-toolkit(适用于 Paper 和 Spigot) - 调整并新增部分 Kotlin DSL 模块:
commandapi-core-kotlin -> commandapi-kotlin-corecommandapi-bukkit-kotlin -> commandapi-kotlin-bukkitcommandapi-velocity-kotlin -> commandapi-kotlin-velocity- 新增:
commandapi-kotlin-paper - 新增:
commandapi-kotlin-spigot
- 移除
新功能
- 在 Paper 上现在可以在启动引导阶段注册命令
API 变更
- 将
CommandAPIBukkitConfig类改为抽象类,取而代之的是根据所用模块选择新的CommandAPIPaperConfig或CommandAPISpigotConfig类 FloatRangeArgument已重命名为DoubleRangeArgument,现返回DoubleRange类型PlayerArgument和OfflinePlayerArgument已被PlayerProfileArgument替代,返回List<PlayerProfile>。PlayerProfile类的具体实现取决于你使用的是 Paper 还是 Spigot。若需获取Player对象,请使用EntitySelectorArgument.OnePlayerAsyncOfflinePlayerArgument已被AsyncPlayerProfileArgument替代ChatArgument、ChatComponentArgument和ChatColorArgument不再包含任何 Adventure 前缀,其返回类型根据平台不同而有所变化- 在 Paper 上,
ChatArgument返回一个SignedMessage对象。同时解决 #381 BlockStateArgument现在返回BlockState对象而非BlockData对象
配置变更
- 使用新的
fallback-to-latest-nms配置项替代原有的use-latest-nms-version和be-lenient-for-minor-versions选项:- 当加载 CommandAPI 时,若该配置设为
true,会优先检查当前版本是否受支持,并优先使用匹配版本 - 若当前版本不受支持,则 CommandAPI 将尝试使用最新的 NMS 版本,但该版本可能无法完全正常工作
- 此配置项在 Paper 上默认为
true,在 Spigot 上默认为false
- 当加载 CommandAPI 时,若该配置设为


