Skip to content
Discussion options

You must be logged in to vote

Just seen you wanted this for the client side, and not the server. On the client you will want ClientSendMessageEvents.MODIFY_CHAT like so:

ClientSendMessageEvents.MODIFY_CHAT.register((message) -> {
if (message.contains("modify send")) {
LOGGER.info("Modifying chat message: " + message);
return "sending modified chat message";
}
return message;
});

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@D4nPlus6
Comment options

@FlukeBTW
Comment options

@D4nPlus6
Comment options

Answer selected by D4nPlus6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
3 participants