This is pretty simple. This is just a status that GM's turn on and off with the !leeton and !leetoff commands and what it does it makes the person speak in leetspeak. Here's a picture to describe:

CommandProcessor.java
Code:
else if (splitted[0].equals("!leeton"))
{
MapleCharacter victim = cserv.getPlayerStorage().getCharacterByName(splitted[1]);
victim.setLeetness(true);
mc.dropMessage("You have given " + victim.getName() + " the gift of 1337ness.");
ServernoticeMapleClientMessageCallback cm = new ServernoticeMapleClientMessageCallback(victim.getClient());
if(!(c.getPlayer().getName().equals(victim.getName())))
{
cm.dropMessage("You have been given the gift of 1337ness by a GM.");
}
}
else if (splitted[0].equals("!leetoff"))
{
MapleCharacter victim = cserv.getPlayerStorage().getCharacterByName(splitted[1]);
victim.setLeetness(false);
mc.dropMessage("You have taken away " + victim.getName() + "'s 1337ness.");
ServernoticeMapleClientMessageCallback cm = new ServernoticeMapleClientMessageCallback(victim.getClient());
if(!(c.getPlayer().getName().equals(victim.getName())))
{
cm.dropMessage("Your 1337ness has been taken away by a GM.");
}
}
MapleCharacter.java, after this line:
Code:
private boolean gm;
add this line:
Code:
private boolean leetness;
MapleCharacter.java, after this line:
Code:
setPosition(new Point(0, 0));
add this line:
MapleCharacter.java, after this code:
Code:
public void setLevel(int level) {
this.level = level-1;
}
add this code:
Code:
public boolean getLeetness()
{
return leetness;
}
public void setLeetness(boolean setTo)
{
leetness = setTo;
}
GeneralChatHandler.java, after this code:
Code:
if (StringUtil.countCharacters(text, '@') > 4 || StringUtil.countCharacters(text, '%') > 4 ||
StringUtil.countCharacters(text, '+') > 6 || StringUtil.countCharacters(text, '$') > 6 ||
StringUtil.countCharacters(text, '&') > 6 || StringUtil.countCharacters(text, '~') > 6 ||
StringUtil.countCharacters(text, 'W') > 6) {
text = "DISREGARD THAT I SUCK COCK";
}
add this code:
Code:
if(c.getPlayer().getLeetness())
{
String normal = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
String leet = "48(d3f9h1jk1mn0PQR57uvwxyz@6cD3F9hiJk|Mn0pqr$+uvWXy2";
for(int i = 0; i < 52; i++)
{
text = text.replace(normal.charAt(i), leet.charAt(i));
}
text = text.replaceAll("y0u", "j00");
}
And that should do it. Enjoy.