CommandPrompter 命令提示器 | |
---|---|
![]() |
DeluxeMenus、ChestCommand或任何菜单插件的伟大插件伴侣 |
作 者 | CyR1en |
发布时间 | 2017年9月30日 |
支持核心 | Spigot | 原生版本 |
支持版本 | 1.14,1.15,1.16,1.17,1.18,1.19,1.20 |
插件详细介绍
CommandPrompter is a versatile plugin designed to enhance menu-based plugins like DeluxeMenus or Chest Commands. It simplifies the command execution process by prompting users for necessary arguments, eliminating the need for redundant menu items. This plugin offers various user interfaces for input, including chat prompts, anvil UI, player UI, and sign UI, making it a flexible solution for server administrators.
Below is a sample configuration used with DeluxeMenus:
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]'
* Requires the use of Player or Console delegate commands.