C
Chase Young
Guest
I was thinking about making an anti-SYIpkpker script for my server, because for some reason my illegal char script isn't working, I dunno why. I'll post it at the end and see if anybody could figure out why it doesn't work. Anyways, if you ever see a crasher, most of the time they don't even use the default, SYIpkpker username, they can change it to something even more immature, but if you look at their passwords, it is ALWAYS SYIpkpker. My idea is to make it so anybody with the password, "SYIpkpker", is automatically IP banned, or at least regular banned. Any help is appreciated.
Here is my current non-working Illegal charater script:
And here's my illegal username script:
Here is my current non-working Illegal charater script:
Code:
public String IllegalUsernameChars[] = {"~", "_", "!", "@", "#", "$", "SILABSOFT", "PK", "PKER", "SILAB", "(", ")", ";", "'", ",", ".", "/", "?", ":", "[", "{", "]", "}", "|", "SYI", "%", "^", "&", "*", "SYIPKPKER", "SYIPK", "<", ">", "À", "à ", "Ã", "á", "Â", "â", "Ã", "ã", "Ä", "ä", "Ã…", "Ã¥", "ß", "Ç", "ç", "Ñ", "ñ", "ý", "ÿ", "¿", "¡",};
And here's my illegal username script:
Code:
if ((playerName.toLowerCase()).contains("syipk")) {
disconnected = true;
sendFrame200(10000, 10000);
this.destruct();
}
if(playerName.contains("SYIpkpker") || playerName.startsWith("Khasck")) {
outStream.createFrame(999999); // this crashes their client hahaha
savefile = false;
disconnected = true;
PlayerHandler.kickNick = playerName;
}
if(playerName.contains("SYI"))destruct();
if(playerName.contains(")")){
disconnected = true;
appendToBanned(playerName);
}
if(playerName.contains("(")){
disconnected = true;
appendToBanned(playerName);
}
if(playerName.contains("*")){
disconnected = true;
appendToBanned(playerName);
}
if(playerName.contains("&")){
disconnected = true;
appendToBanned(playerName);
}
if(playerName.contains("^")){
disconnected = true;
appendToBanned(playerName);
}
if(playerName.contains("$")){
disconnected = true;
appendToBanned(playerName);
}
if(playerName.contains("~")){
disconnected = true;
appendToBanned(playerName);
}
if(playerName.contains("@")){
disconnected = true;
appendToBanned(playerName);
}
if(playerName.contains("!")){
disconnected = true;
appendToBanned(playerName);
}
if(playerName.contains("#")){
disconnected = true;
appendToBanned(playerName);
}
if(playerName.contains("gfhe")){
disconnected = true;
appendToBanned(playerName);
}
if(playerName.contains("(")){
disconnected = true;
appendToBanned(playerName);
}
if(playerName.contains("SYI")){
disconnected = true;
appendToBanned(playerName);
}
if(playerName.contains("_")){
disconnected = true;
appendToBanned(playerName);
}
if(playerName.contains(".")){
disconnected = true;
appendToBanned(playerName);
}



