Detect Minecraft messages?

Gu
7

How do you program a message detector?
For example:
If someone writes "i4m2g00d4u du Arhloch" that the message will be blocked and then all team members will get a message e.g.
Player [PlayerName] wrote "i4m2g00d4u du Arhloch"

Can someone help me there?

Ul

There are different possibilities. You could ignore the dashes - + _:; '"; *; all special characters that are not letters and then only analyze the text…

You can then compare with the normal "Ars *****" and only block if there's a certain match.

Em

Regex vlt

Gu

If you are familiar with programming, can you tell me how I can test whether there's a match?

Va

This is done with regular expressions (regex): http://www.regexe.de/hilfe.jsp

There's a list of words that are not allowed. When entering a message, the sent message is searched for a character string from this word list using a regular expression.

You can simply check the return value with an if query and then send information to the team members.

Ha

Mh

Ha

Play on tumira xd

Gu

Yup