String[] Flame = { "word1", "word2", "etc" };
for (String string : Flame)
if (message.contains(string)) {
player.getPackets().sendGameMessage("Do not flame.");
return;
}
|
|
Help me !!
How to Block Flaming for = ****
-Thanks
Respect for helpers
noo .. i mean . When player type in chat Hi Guys fuck you
it block so it go
Hi guys **** you
do you now understand what i mean ? :O
Replace the string fuck for example with ****


How Lol
Put this where your public chat is handled
I'm sure theres a more efficient way of doing it but this'll work.
if (message.contains("fuck") {
message.replace("fuck", "****");
}
| « My account won't log out on my RSPS | [718] Client + Antivirus? » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |