Interface ClientSendMessageEvents.AllowChat
- Enclosing class:
ClientSendMessageEvents
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanallowSendChatMessage(String message) Called when the client is about to send a chat message, typically from a client GUI.
-
Method Details
-
allowSendChatMessage
Called when the client is about to send a chat message, typically from a client GUI. Returningfalseprevents the message from being sent, andClientSendMessageEvents.CHAT_CANCELEDwill be triggered instead ofClientSendMessageEvents.MODIFY_CHAT.- Parameters:
message- the message that will be sent to the server- Returns:
trueif the message should be sent, otherwisefalse
-