Interface ChatContext
public interface ChatContext
The per-message context handed to a
ChatUtils callback. A fresh instance is
created for every captured message.-
Method Summary
-
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 theonEndhook withEndReason.ENDED.
-