Evil Mage Admin
Number of posts : 432 Age : 32 Registration date : 2008-05-08
| Subject: how to stop the swearing Thu Jul 03, 2008 5:25 am | |
| [QUOTE=James;277458]Purpose: To make you censor system work by censoring the words whilst they are typed! Difficulty: -3 Procedure: Step One: In client.java find: - Code:
-
public final void method73(int i) Under the { add: - Code:
-
for(int james = 0; james < badWords.length; james++) { String bad = badWords[james]; if(aString887.contains(bad)) aString887 = aString887.replaceAll(badWords[james], "***"); } Now declare the following: - Code:
-
public String badWords[] = {"word1", "word2", "word3"}; Add in your own bad words. I cannot post them here because they will be blocked lol. If you have a brain then you can make the words load from the tinternet :d James,[/QUOTE] | |
|