CommandPrompter 是一款专为 DeluxeMenus、Chest Commands 等菜单插件设计的工具。它解决了菜单插件要求为每个命令预先填写参数的问题,让你能够动态地提示玩家输入命令参数,从而简化配置并提升交互体验。
以下演示基于 DeluxeMenus 插件配置了一个惩罚菜单。当玩家点击选项时,CommandPrompter 会弹出输入提示。
menu_title: '&cPunish menu'
open_command: punish
size: 9
open_requirement:
requirements:
permission:
type: has permission
permission: menu.open.punish
deny_commands:
- '[message] You dont have permission to open menu : punish'
items:
'1':
material: barrier
slot: 0
display_name: '&cMute a player'
lore:
- '&aYou will be prompted to type the player name'
- '&ato mute after selecting this option'
left_click_commands:
- '[player] mute <-p &6Select player to &c&lmute>'
- '[close]'
right_click_commands:
- '[player] mute <-p &6Select player to &c&lmute>'
- '[close]'
'2':
material: barrier
slot: 4
display_name: '&aKick a player'
lore:
- '&aYou will be prompted to type the player name'
- '&ato kick after selecting this option'
left_click_commands:
- '[player] kick <-a &c&lkick &3&lwho?>'
- '[close]'
right_click_commands:
- '[player] kick <-a &c&lkick &3&lwho?>'
- '[close]'
'3':
material: barrier
slot: 8
display_name: '&aBan a player'
lore:
- '&aYou will be prompted to type the player name'
- '&ato ban by clicking here'
left_click_commands:
- '[player] ban <&6Type the name of the player you want to &c&lban>'
- '[close]'
right_click_commands:
- '[player] ban <&6Type the name of the player you want to &c&lban>'
- '[close]'在菜单命令中,使用特定格式来触发 CommandPrompter:
[player] <命令> <提示文本>:以玩家身份执行命令,并显示提示文本要求输入参数。[console] <命令> <提示文本>:以控制台身份执行命令,并显示提示文本要求输入参数。<提示文本> 前的符号(如 -p, -a)用于指定提示界面的类型。友情链接: 网易我的世界 | 泰拉瑞亚 | ocent云计算 | 米饭Minecraft插件文档 | 友链合作
历史访问人次:3,030,766 | 今日访问人次:14,894 | 昨日访问人次:11,147
独立 IP:5,138 | 最近24小时独立访客:7,145
Copyright © 2019-2026 我的世界服务器列表站. All rights reserved.
❤ Powered by GermMC 京ICP备17023959号-6