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.
下载 CustomCommand
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CustomCommand
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CustomCommand
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CustomCommand
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CustomCommand
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CustomCommand
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CustomCommand
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CustomCommand
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CustomCommand
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CustomCommand
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
更改
- 修复了一个更新检查器导致任务指数级重复的 bug。这最终会导致 hangar 拒绝请求,在控制台中不断刷屏,并不幸地在文件中留下异常堆栈跟踪信息。由于我的测试会话通常不会持续太久,因此我没有注意到这个变化。对于不得不删除成千上万文件的用户,我深表歉意。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
使床在所有维度中爆炸的模组
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
评论 0
登录后参与评分
还没有评论,来抢沙发吧