java.lang.Object
java.lang.Enum<EndReason>
tech.guilhermekaua.spigotboot.core.spigot.conversation.EndReason
All Implemented Interfaces:
Serializable, Comparable<EndReason>, Constable

public enum EndReason extends Enum<EndReason>
Why a ChatUtils conversation ended. Passed to the onEnd hook.
  • Enum Constant Details

    • ENDED

      public static final EndReason ENDED
      The callback called ChatContext.end().
    • TIMEOUT

      public static final EndReason TIMEOUT
      The inactivity timeout elapsed with no message.
    • DISCONNECT

      public static final EndReason DISCONNECT
      The player left the server (PlayerQuitEvent).
    • PLUGIN_DISABLE

      public static final EndReason PLUGIN_DISABLE
      The owning plugin/context is shutting down.
    • REPLACED

      public static final EndReason REPLACED
      A new prompt was started for a player already in one.
  • Method Details

    • values

      public static EndReason[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EndReason valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null