Class InactivityConversationCanceller

java.lang.Object
org.bukkit.conversations.InactivityConversationCanceller
All Implemented Interfaces:
Cloneable, ConversationCanceller

public class InactivityConversationCanceller extends Object implements ConversationCanceller
An InactivityConversationCanceller will cancel a Conversation after a period of inactivity by the user.
  • Field Details

    • plugin

      protected Plugin plugin
    • timeoutSeconds

      protected int timeoutSeconds
    • conversation

      protected Conversation conversation
  • Constructor Details

    • InactivityConversationCanceller

      public InactivityConversationCanceller(@NotNull Plugin plugin, int timeoutSeconds)
      Creates an InactivityConversationCanceller.
      Parameters:
      plugin - The owning plugin.
      timeoutSeconds - The number of seconds of inactivity to wait.
  • Method Details