Class MessagePrompt

java.lang.Object
org.bukkit.conversations.MessagePrompt
All Implemented Interfaces:
Cloneable, Prompt

public abstract class MessagePrompt extends Object implements Prompt
MessagePrompt is the base class for any prompt that only displays a message to the user and requires no input.
  • Constructor Details

    • MessagePrompt

      public MessagePrompt()
  • Method Details

    • blocksForInput

      public boolean blocksForInput(@NotNull ConversationContext context)
      Message prompts never wait for user input before continuing.
      Specified by:
      blocksForInput in interface Prompt
      Parameters:
      context - Context information about the conversation.
      Returns:
      Always false.
    • acceptInput

      @Nullable public Prompt acceptInput(@NotNull ConversationContext context, @Nullable String input)
      Accepts and ignores any user input, returning the next prompt in the prompt graph instead.
      Specified by:
      acceptInput in interface Prompt
      Parameters:
      context - Context information about the conversation.
      input - Ignored.
      Returns:
      The next prompt in the prompt graph.
    • getNextPrompt

      @Nullable protected abstract Prompt getNextPrompt(@NotNull ConversationContext context)
      Override this method to return the next prompt in the prompt graph.
      Parameters:
      context - Context information about the conversation.
      Returns:
      The next prompt in the prompt graph.