#[SOLVED] User input in Conversation

1 messages · Page 1 of 1 (latest)

half jay
#

Hello, I'm dealing with StringPrompt, Conversation, and Conversation Factory. I need help in canceling the user input (chat) after the prompt when starting a conversation with a Player. Anybody know how?

#

Thanks

acoustic yew
#

Use the AsyncPlayerChatEvent, get the message in it, and cancel it

half jay
acoustic yew
#
public class YourPrompt extends StringPrompt {

    @Override
    public Prompt acceptInput(ConversationContext con, String playerInput) {
        //... do with playerInput whatever u like
        return null;
    }
}
half jay
#

Yeah... how'd i cancel the input message?

#

Nevermind, it's solved. Solved it by ConversationFactory#withLocalEcho(bool);

#

[SOLVED] User input in Conversation

acoustic yew
#

ah, didnt know that

#

xD

half jay
#

thanks anyways