New prompt settings in the config!
Code (YAML):
# prompt feature settings for action commands
prompts
:
# how many attempts the player gets before the prompt is canceled
attempts
: 5
# typing these words in chat will exit the prompt
cancel-words
:
- 'cancel'
- 'exit'
# the time the player has to type in an answer to the prompt before it times out
# in seconds
time-limit
: 30
- Multiple attempts for prompts if an incorrect input is used
This will work for any bounty commands. If you want to prompt a command from a different plugin, you can specify an answer type in the prompt.
Code (Text):
Using a bounty command:
'[pprompt] bounty {slot13} <&eEnter in chat the bounty amount or type "cancel" to cancel.>'
Using other commands for a player name input:
'[cprompt] give <PLAYER~&eEnter in chat a player name or type "cancel" to cancel.> DIAMOND 1'
Using other commands for a number input:
'[cprompt] give {player} DIAMOND <NUMBER~&eEnter in chat a number or type "cancel" to cancel.>'
- Cancel words for prompts
- Time limit for prompts
The amount of commands have increased to be quite long in chat, so I've transitioned them into different pages sorted by their function.