CommandPrompter

CommandPrompter - 菜单插件交互助手

DeluxeMenus、ChestCommand 或任何菜单插件的绝佳伴侣插件
Bukkit / Spigot 作者 cyrien 支持版本 1.14 - 1.21
服务器使用量
160
服务玩家数
682
下载量
32,831
插件详细介绍

CommandPrompter 是一款专为 DeluxeMenus、Chest Commands 等菜单插件设计的工具。它解决了菜单插件要求为每个命令预先填写参数的问题,让你能够动态地提示玩家输入命令参数,从而简化配置并提升交互体验。

核心功能

  • 高度可配置:轻松设置各种提示方式。
  • 多种提示界面:支持聊天栏、铁砧GUI、玩家GUI和告示牌界面。
  • 国际化支持:内置 I18N 与 UTF-8 编码支持。
  • 输入验证:确保玩家输入符合预期格式。
  • 权限附加:可动态管理玩家权限。
  • 命令委托:支持将命令交由控制台或另一玩家执行。
  • 自定义模型数据:支持为物品设置 Custom Model Data。
  • 广泛兼容:理论上兼容所有菜单插件(需使用 Player 或 Console 委托命令)。

使用方法与演示

以下演示基于 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)用于指定提示界面的类型。

安装与支持

  • 详细安装与使用指南,请查阅官方 Wiki 页面。
  • 感谢所有贡献者与用户的支持。
测试支持版本
1.14 1.15 1.16 1.17 1.18 1.19 1.20 1.20.6 1.21
版本分布
基本信息
插件名称 CommandPrompter
作者 cyrien
平台 Bukkit / Spigot
支持版本 1.14 - 1.21
点赞数 14
Modrinth 下载 545
最近版本
2.16.0 68
3.0.0 23
3.1.0 12
2.12.0 11
3.2.0 10
0.1.19 10
2.15.0 9
3.1.1 8
2.10.0 3
2.7.0 2
2.1.1 2
0.1.28 2