#[SOLVED] User input in Conversation
1 messages · Page 1 of 1 (latest)
https://prnt.sc/213ijd3 The text prompt is the first line, and the chat input is "3", I want 3 to not be displayed
Thanks
Use the AsyncPlayerChatEvent, get the message in it, and cancel it
How'd you get the player input message from a StringPrompt?
public class YourPrompt extends StringPrompt {
@Override
public Prompt acceptInput(ConversationContext con, String playerInput) {
//... do with playerInput whatever u like
return null;
}
}
Yeah... how'd i cancel the input message?
Nevermind, it's solved. Solved it by ConversationFactory#withLocalEcho(bool);
[SOLVED] User input in Conversation
thanks anyways