Skip to content

Getting Started

Ethan Bacurio edited this page Feb 4, 2023 · 10 revisions

Installation

  • Download the latest version of CommandPrompter on SpigotMC
  • Drag and drop the downloaded .jar file into your server's plugins folder.
  • Start the server and you're done!

Adding support to SignGUI

SignGUI was only tested on 1.17+ versions of Minecraft

  • To add support for SignGUI, you need to download ProtocolLib and add it to your plugins folder

How to use CommandPrompter

After the installation, CommandPrompter intercepts all of the commands that are being executed by players. If one of the commands contains Prompt(s) (by default it is signified with a <>, but could be changed in the configuration.) CommandPrompter will then cancel that command and prompt the player with whatever that prompt was. When all prompts have been resolved, CommandPrompter will then make the player execute the full command.

Additional Prompt Option

An additional argument that you append at the beginning of the prompt changes the type of that prompt. By default, a prompt without an argument is going to be a Text Prompt. However, if we append the argument -a (with a space), the prompt becomes an Anvil Prompt. To see all of the available prompt types, check this page out. And to learn more about Arguments check Prompt and PromptQueue Arguments

Example

Text Prompt:
    Player: /command <prompt 1> <prompt 2>
    CommandPrompter: prompt 1
    Player: answer1
    CommandPrompter: prompt 2
    Player: answer2

Now that the command completion is done, CommandPrompter will now execute the following command:
/command answer1 answer2

Anvil Prompt:
    Player: /command <-a prompt>
    CommandPrompter: opens anvil gui for player.
    Player: types "answer1" on the anvil.
 
Now that the command completion is done, CommandPrompter will now execute the following command:
/command answer1

Clone this wiki locally