Posted March 8, 20178 yr Hi guys I need to make a function that when it detects a chat message with a specific string inside it it changes the sent message or deletes it completely (Client side of course). For example: Original: Someone: Hi, you smell Edited: Someone: Hi, you ***** Thanks
March 8, 20178 yr Author 5 minutes ago, loordgek said: to filter out non PG words??? https://github.com/pahimar/ChitChat It was just an example, but yeah something like that. Where can I see the Chat event handler and how it edits the messages?
March 8, 20178 yr Author 1 minute ago, diesieben07 said: You browse the repository. Seriously, we are not your butlers... I did without success. If I succeeded I'd just say "thank you" and not ask anything else.
March 8, 20178 yr Author 1 minute ago, diesieben07 said: Ok, I don't know what Pahimar is up to there again, but that repository is completely pointless. The mod in it does nothing. And that is why I probably was not able to find anything.
March 8, 20178 yr https://github.com/pahimar/ChitChat/blob/pre-gra/common/com/pahimar/chitchat/chat/ChatListener.java but IChatListener is no longer there @diesieben07 can you ask somewhere what happend to it??
March 9, 20178 yr Author 18 hours ago, diesieben07 said: IChatListener was replaced by events, namely ServerChatEvent and ClientChatReceivedEvent. Wait, so is it possible to edit an already sent message?
March 9, 20178 yr Author 7 minutes ago, diesieben07 said: Yes, you can control that on the server-side using ServerChatEvent. Thank you for replying fast haha - can I do something like this on client side?
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.