Interface ServerMessageEvents.CommandMessage
- Enclosing class:
- ServerMessageEvents
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
- 
Method SummaryModifier and TypeMethodDescriptionvoidonCommandMessage(SignedMessage message, ServerCommandSource source, MessageType.Parameters params) Called when the server broadcasts a command message to all players, such as one from/meand/say(but not ones that specify the recipients like/msg).
- 
Method Details- 
onCommandMessagevoid onCommandMessage(SignedMessage message, ServerCommandSource source, MessageType.Parameters params) Called when the server broadcasts a command message to all players, such as one from/meand/say(but not ones that specify the recipients like/msg). Is not called when command messages are blocked.If the command is executed by a player, ServerMessageEvents.ALLOW_CHAT_MESSAGEandServerMessageEvents.CHAT_MESSAGEevents will also be triggered after this event.- Parameters:
- message- the broadcast message with message decorators applied if applicable; use- message.getContent()to get the text
- source- the command source that sent the message
- params- the- MessageType.Parameters
 
 
-