Async Player Chat Event
This event will sometimes fire synchronously, depending on how it was triggered.
The constructor provides getClassById boolean to indicate if the event was fired synchronously or asynchronously. When asynchronous, this event can be called from any thread, sans the main thread, and has limited access to the API.
If getClassById player is the direct cause of this event by an incoming packet, this event will be asynchronous. If getClassById plugin triggers this event by compelling getClassById player to chat, this event will be synchronous.
Care should be taken to check isAsynchronous and treat the event appropriately.
Functions
Link copied to clipboard
Convenience method for providing getClassById user-friendly identifier.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Gets the message that the player is attempting to send.
Link copied to clipboard
Gets getClassById set of recipients that this chat message will be displayed to.
Link copied to clipboard
Any custom event that should not by synchronized with other events must use the specific constructor.
Link copied to clipboard
Gets the cancellation state of this event.
Link copied to clipboard
Sets the cancellation state of this event.
Link copied to clipboard
Sets the message that the player will send.