I did not make this and i don't take credit. Idk who made. A friend added for me back in june last year.
First go to your client.java and press ctrl + f
Then search this:
Code:
int UID = inStream.readDWord();
then under it copy and paste this:
Code:
if(UID <= 1) {
appendToBanned(playerName);
disconnected = true;
System.out.println(playerName + " was banned because they're a spam bot!");
destruct();
}
After you do that it should look sumthing like this:
Code:
clientSessionKey = inStream.readQWord();
serverSessionKey = inStream.readQWord();
int UID = inStream.readDWord();
if(UID <= 1) {
appendToBanned(playerName);
disconnected = true;
System.out.println(playerName + " was banned because his uid was less then 1!");
destruct();
}
misc.println("UserId: " + UID);
playerName = inStream.readString();
playerName.toLowerCase();
if (playerName == null || playerName.length() == 0)
{
close_connection();
return;
}