Key Command Bind 是一款允许玩家通过按下键盘数字键(1-9)来触发预设命令的 Minecraft 插件。它提供了丰富的配置选项,包括冷却时间、权限检查、消耗设置等,并能与 PlaceholderAPI 和 Vault 等插件联动。
%kcbPlayer% 获取玩家名。-c- 前缀,即可让命令在控制台执行。KeyCommandBind.jar 文件放入服务器的 plugins 文件夹。plugins/KeyCommandBind/config.yml 文件。配置文件位于 plugins/KeyCommandBind/config.yml。以下是对主要配置项的说明:
# 启用/禁用调试信息
"disableMessages": false,
# 启用/禁用通过切换物品来检测按键(传统模式)
"swapModeEnabled": false,
# 启用/禁用通过按键按压来检测按键(推荐模式)
"keyPressModeEnabled": false,每个按键(key1 到 key9)都有独立的配置区块。以 key1 为例:
"key1": {
# 启用或禁用此按键槽位
"enabled": false,
# 按下按键时禁用物品交换
"disableSwap": false,
# 启用按键后物品返回指定槽位
"returnKeyEnabled": false,
"returnKeySlot": 1,
# 仅在潜行时激活命令
"sneakingOnly": false,
# 潜行时禁用命令(覆盖 sneakingOnly)
"disableOnSneak": false,
# 飞行时禁用命令
"disableOnFly": false,
# 启用权限检查
"usePermission": false,
"permission": "kcb.key1",
# 无权限时的提示消息
"noPermissionMessageEnabled": false,
"noPermissionMessage": "Key is still in cooldown",
# 冷却时间(毫秒),设为 0 则无冷却
"cooldownMilliSeconds": 500,
"cooldownMessageEnabled": false,
"cooldownMessage": "Key is still in cooldown",
# 经验等级消耗
"enabledExpCost": false,
"expCost": 1,
"insufficientExpMessageEnabled": false,
"insufficientExpMessage": "Insufficient exp to run command",
# 金钱消耗(需 Vault)
"moneyCostEnabled": false,
"moneyCost": 1,
"insufficientMoneyMessageEnabled": false,
"insufficientMoneyMessage": "Insufficient exp to run command",
# 要执行的命令列表
"commands": [
"version",
"-c- say %kcbPlayer% executed a console command"
]
}在 commands 列表中的命令前加上 -c- 前缀。例如:"-c- say Hello"。
使用 %kcbPlayer% 占位符,它会被替换为触发按键的玩家名称。
> 注意:在评分区提交的报告可能会被遗漏。
如果您喜欢这个插件并想支持作者继续开发,可以考虑通过 Spigot 页面提供的链接请作者喝杯咖啡或吃个披萨。您的支持是最大的动力!
友情链接: 网易我的世界 | 泰拉瑞亚 | ocent云计算 | 米饭Minecraft插件文档 | 友链合作
历史访问人数:2,630,614 | 历史访问人次:3,188,534
今日访问人数:5,468 | 今日访问人次:5,893
昨日访问人数:46,463 | 昨日访问人次:52,262
Copyright © 2019-2026 我的世界服务器列表站. All rights reserved.
❤ Powered by GermMC 京ICP备17023959号-6