CommandPrompter 0.1.27

Great Plugin Companion for DeluxeMenus, ChestCommand, or Any Menu Plugins

  1. CyR1en
    Tested Minecraft Versions:
    • 1.14
    • 1.15
    • 1.16
    • 1.17
    • 1.18
    Source Code:
    https://github.com/CyR1en/CommandPrompter
    [​IMG]
    Asset 4.png

    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.​
    button_wiki.png button_source (1).png button_discord.png
    Version 2 preview 8: Click here
    Asset 17.png
    Asset 19.png
    * To support other menu plugins, the Enable-Unsafe option in CommandPrompter's configuration must be enabled.


    Asset 12.png
    [​IMG]
    demo presented with DeluxeMenus
    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]'
     

    Asset 13.png
    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.
    Code (Java):
      public static void dispatchCommand(Plugin plugin, Player sender, String command) {
        new BukkitRunnable() {
          public void run() {
            sender.chat(checked);
          }
        }.runTask(plugin);
      }
    Or you can add it as a dependency for your project. (Support starts with CommandPrompter 0.1.17)

    For Maven:
    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>
    For Gradle:
    Code (Text):
        repositories {
            maven { url 'https://jitpack.io' }
        }
     
        dependencies {
                compileOnly 'com.github.CyR1en:CommandPrompter:Tag'
        }
     
    Once added, you can just use the the Dispatcher Class.
    Code (Java):

    private void dispatch(Player sender, String command) {
        Dispatcher.dispatchCommand(plugin, sender, command);
    }
    You have to check if CommandPrompter is loaded before you can use the Dispatcher class.

    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.

    Thanks to:
    logo.png

Recent Reviews

  1. pvpSmashEmpire
    pvpSmashEmpire
    3/5,
    Version: 0.1.27
    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!
    1. CyR1en
      Author's Response
      Is it possible if you join my Discord server so we can look into this more
  2. Betob89
    Betob89
    4/5,
    Version: 0.1.27
    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) [?:?]
  3. SirButtercup
    SirButtercup
    5/5,
    Version: 0.1.27
    A really great plugin. Really helps make life easier for players who aren't confident with commands.

    Developer is quick to respond too!
    1. CyR1en
      Author's Response
      Thanks for the review ❤️
  4. TheGoldenHearth
    TheGoldenHearth
    5/5,
    Version: 0.1.26
    Developers who respond quickly and are pleasant to work with. I would recommend it to anyone who wants to create a GUI
    1. CyR1en
      Author's Response
      Thanks for the review!
  5. Nextler
    Nextler
    5/5,
    Version: 0.1.26
    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
    1. CyR1en
      Author's Response
  6. qscbm187531
    qscbm187531
    5/5,
    Version: 0.1.24
    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.
  7. Fabb_Ex3
    Fabb_Ex3
    5/5,
    Version: 0.1.19
    Works fine @ paper 1.17 tho :P your welcome
  8. Lord_Junes
    Lord_Junes
    5/5,
    Version: 0.1.19
    works fine with paper 1.16.5
    works fine with PurPur (#1086) 1.16.5
    Nice work :-)
  9. stefanocarma
    stefanocarma
    5/5,
    Version: 0.1.19
    works fine with paper 1.16.4, thanks for your plugin............................vote 10+
  10. Zsutabazdmeg
    Zsutabazdmeg
    3/5,
    Version: 0.1.19
    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.