Usage
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 allow the player to 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 out the Prompts group on the sidebar. 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
Last updated
Was this helpful?