public interface ChatContext
The per-message context handed to a ChatUtils callback. A fresh instance is created for every captured message.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    end()
    Ends the conversation now.
     
    org.bukkit.entity.Player
     
  • Method Details

    • getPlayer

      org.bukkit.entity.Player getPlayer()
      Returns:
      the player in this conversation.
    • getMessage

      String getMessage()
      Returns:
      the exact message the player just typed.
    • end

      void end()
      Ends the conversation now. Idempotent; safe to call more than once and safe to call from a stale context. Fires the onEnd hook with EndReason.ENDED.