- Tested Minecraft Versions:
- 1.14
- 1.15
- 1.16
- 1.17
- 1.18
- Source Code:
- https://github.com/CyR1en/CommandPrompter
![]()
CommandPrompter is for any menu plugins such as DeluxeMenus or Chest Commands. Since menu plugins require you to provide an argument for every command, it presents unnecessary extra items that essentially do the same thing. However, with CommandPrompter, you can now prompt the command completion.
go to the wiki page for installation instructions and usage.![]()
![]()
* To support other menu plugins, the Enable-Unsafe option in CommandPrompter's configuration must be enabled.
![]()
Code (YAML):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]'
![]()
Starting at version 0.2.0 (including the preview: 0.1.20) this is no longer necessary if the command map hack is enabled in the configuration.
Dispatching player commands like this would allow CommandPrompter to catch it.
Or you can add it as a dependency for your project. (Support starts with CommandPrompter 0.1.17)Code (Java):public static void dispatchCommand(Plugin plugin, Player sender, String command) {
new BukkitRunnable() {
public void run() {
sender.chat(checked);
}
}.runTask(plugin);
}
For Maven:
For Gradle:Code (Text)://Maven
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.CyR1en</groupId>
<artifactId>CommandPrompter</artifactId>
<version>Tag</version>
</dependency>
Once added, you can just use the the Dispatcher Class.Code (Text):repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
compileOnly 'com.github.CyR1en:CommandPrompter:Tag'
}
You have to check if CommandPrompter is loaded before you can use the Dispatcher class.Code (Java):
private void dispatch(Player sender, String command) {
Dispatcher.dispatchCommand(plugin, sender, command);
}
Disclaimer:
The idea for this plugin came from the user named Tommiek on Bukkit forums. Someone already wrote a similar plugin according to the thread, but the project page for that plugin can no longer be found. So I tried to recreate the plugin. The link for that thread is here.

CommandPrompter 0.1.27
Great Plugin Companion for DeluxeMenus, ChestCommand, or Any Menu Plugins
-
Packert, aeonhdaz, Luisomar0369 and 3 others like this.
Recent Updates
- Project Secundum (Preview 8) Mar 12, 2022
- Project Secundum (Preview 7) Feb 19, 2022
- Project Secundum (Preview 6) Feb 13, 2022
Recent Reviews
-
pvpSmashEmpire
- 3/5,
at com.cyr1en.commandprompter.unsafe.ModifiedCommandMap.dispatch(ModifiedCommandMap.java:63) ~[CommandPrompter-0.1.27.jar:?]
at org.bukkit.craftbukkit.v1_19_R1.CraftServer.dispatchCommand(CraftServer.java:900) ~[purpur-1.19.jar:git-Purpur-1666]
at net.minecraft.server.network.ServerGamePacketListenerImpl.handleCommand(ServerGamePacketListenerImpl.java:2459) ~[?:?]
at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChatCommand$19(ServerGamePacketListenerImpl.java:2230) ~[?:?]
at net.minecraft.server.TickTask.run(TickTask.java:18) ~[purpur-1.19.jar:git-Purpur-1666]
at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?]
at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?]
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1385) ~[purpur-1.19.jar:git-Purpur-1666]
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:183) ~[purpur-1.19.jar:git-Purpur-1666]
at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?]
at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1362) ~[purpur-1.19.jar:git-Purpur-1666]
at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1355) ~[purpur-1.19.jar:git-Purpur-1666]
at net.minecraft.util.thread.BlockableEventLoop.runAllTasks(BlockableEventLoop.java:114) ~[?:?]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1489) ~[purpur-1.19.jar:git-Purpur-1666]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1208) ~[purpur-1.19.jar:git-Purpur-1666]
at net.minecraft.server.MinecraftServer.lambda$spin$1(MinecraftServer.java:307) ~[purpur-1.19.jar:git-Purpur-1666]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
>
PLEASE FIX! GREAT PLUGIN SO FAR! -
Betob89
- 4/5,
FIX PLEASE
[14:12:27 WARN]: [CommandPrompter] Plugin CommandPrompter v0.1.27 generated an exception while executing task 1148
java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 0
at java.util.ArrayList.add(ArrayList.java:455) ~[?:?]
at java.util.ArrayList.add(ArrayList.java:467) ~[?:?]
at com.cyr1en.commandprompter.prompt.ui.SkullCache.cachePlayer(SkullCache.java:39) ~[?:?]
at com.cyr1en.commandprompter.prompt.ui.SkullCache.lambda$onPlayerLogin$4(SkullCache.java:110) ~[?:?]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:100) ~[patched_1.16.5.jar:git-Tuinity-"9f3435b"]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:58) ~[patched_1.16.5.jar:git-Tuinity-"9f3435b"]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[patched_1.16.5.jar:git-Tuinity-"9f3435b"]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) ~[?:?]
at java.lang.Thread.run(Thread.java:831) [?:?] -
SirButtercup
- 5/5,
A really great plugin. Really helps make life easier for players who aren't confident with commands.
Developer is quick to respond too!-
Author's Response
Thanks for the review ❤️
-
TheGoldenHearth
- 5/5,
Developers who respond quickly and are pleasant to work with. I would recommend it to anyone who wants to create a GUI
-
Author's Response
Thanks for the review!
-
Nextler
- 5/5,
Great plugin. Please make it possible to execute commands on behalf of the console, but at the same time the player could choose the necessary action, as is done now. Please
-
Author's Response
Thanks for the review! This feature was already considered and somewhat resolved. Check closed issue #10 on GitHub https://github.com/CyR1en/CommandPrompter/issues/10
-
qscbm187531
- 5/5,
This is a good plug-in,He deserves more people to know .This is the first time I've seen this type of plugin.Thanks to the author.
-
-
Lord_Junes
- 5/5,
works fine with paper 1.16.5
works fine with PurPur (#1086) 1.16.5
Nice work :-) -
stefanocarma
- 5/5,
works fine with paper 1.16.4, thanks for your plugin............................vote 10+
-
Zsutabazdmeg
- 3/5,
Please update the plugin, everyone is waiting for an update. I really need it for my server bc i want to open it in december.