CustomCommand v2
使用 brigadier 创建自定义命令的插件。
1.21-26.2 · 兼容基岩版 · 兼容数据包 · JavaScript 执行 · 无 AI 代码* · 自动更新器
开发早期阶段
v2 目前仍在开发中。我不再处于 alpha/beta 构建阶段,但仍有许多功能需要添加和修改。
完成后,它将具备以下功能:
- ✅ 基本命令功能,如描述、权限控制、禁用以及仅限控制台使用。
- ✅ 预设参数类型
- ✅ 自定义建议、要求和执行逻辑
- ✅ 插件重载命令
- ✅ 更多执行类型,如 TEXT 或甚至
- 轻松调用 URL
- ✅ 冷却时间
- ✅ 可在数据包(函数)中使用的命令
- 实用工具,如可点击的物品/告示牌来执行命令
重载能力
有一个重载命令。
只需输入 /ccmd reload 并检查控制台是否有错误。
此方法使用 NMS(Minecraft 内部机制),这在每次更新中可能会发生变化。
因此,如果该命令对您不起作用,请重启服务器。
我计划不使用 /reload 命令来实现此插件的重载。
它使用 Paper 的 brigadier 命令注册,这是一个生命周期“事件”,会阻止重载操作,因此当您尝试运行重载命令时会收到错误消息。
任何承诺在运行时重载插件的插件都将无法正常工作;
它们要么抛出异常,要么导致服务器崩溃,要么毫无反应。
兼容性
Minecraft 版本
最新的.major 版本及其.minor 版本将始终得到支持,例如 26 及其子版本如 26.1 和 26.1.2。
我不会尝试保持广泛的兼容性范围。
基岩版支持 (GeyserMC)
由 CustomCommand 创建的命令在基岩版上与其他命令一样工作。
由于基岩版聊天不支持建议功能,因此不会为基岩版玩家显示建议。
我将考虑通过在动作栏或聊天(或两者)中添加建议的变通方案。
Folia 支持
支持 Folia
Velocity 支持
尚未支持,但这是优先事项。
Fabric (服务端)
尚未支持,但我非常希望如此。
Fabric (客户端)
尚未支持。
我可以想象,一旦插件具备我想要添加的所有功能,我就会为其提供支持。
*: AI 使用情况?
- ❌ Vibecoding/代理工程(完全由 AI 生成的文件或项目部分)
- ✅ 调试
- ❌ 生成文本(描述、示例命令、教程)
- ✅ 生成长 Markdown 表格
- ❌ 纠正我的语法
统计数据
不包括我的测试服务器。
CustomCommand v2
A custom command creation plugin using brigadier.
1.21-26.2 · Bedrock compatible · Datapack compatible · Javascript execution · No AI Code* · Automatic Updater
Early stages of development
v2 is currently under development. I'm not on alpha/beta builds anymore, but there are still many features to add and features to change.
When finished, it will feature:
- ✅ basic command features like description, permission, disabling and console only.
- ✅ preset argument types
- ✅ custom suggestions, requirements and execution
- ✅ a plugin reload command
- ✅ more execution types like TEXT or even
- calling URLs easily
- ✅ cooldowns
- ✅ commands usable in datapacks (functions)
- utils like clickable items/signs to execute commands
Reloadability
There is a reload command.
Just type /ccmd reload and check the console for errors.
This method uses NMS (minecarft's internals) which may change in every update.
So if the command doesn't work for you, restart instead.
I don't plan to make this plugin reloadable using the /reload command.
It uses paper's brigadier command registration, which is a lifecycle "event", which blocks reloading, so you will get an error message when trying to run the reload command.
Any plugins that promise to reload plugins on runtime will not work;
either throw an exception, crash the server or do nothing.
Compatibility
Minecraft Versions
The latest major version and its minor versions will always be supported, e.g. 26 and its minor versions like 26.1 and 26.1.2.
I will not try to keep a wide compatibility range.
Bedrock Support (GeyserMC)
Commands created by CustomCommand work like any other command on bedrock.
Suggestions are not shown for bedrock players as the bedrock chat doesn't support them.
I will consider adding a work-around with suggestions in the actionbar or the chat (or both).
Folia Support
Folia is supported
Velocity Support
Not yet, but it is a priority.
Fabric (Server)
Not yet, I'd love to tho.
Fabric (Client)
Not yet.
I can imagine that I will make it as soon as the plugin has all features I want to add.
*: AI Usage?
- ❌ Vibecoding/Agentic Engineering (fully AI generated files or parts of the project)
- ✅ Debugging
- ❌ Generating text (description, example commands, tutorials)
- ✅ Generating long Markdown tables
- ❌ Correcting my grammar
Statistics
My test servers are not included.
评论 0
登录后参与评分
还没有评论,来抢沙发吧