Initiate Mage
- Joined
- Nov 12, 2008
- Messages
- 2
- Reaction score
- 0
Welcome to my tut.
Diffculity : 1/10 Really easy.
This took me around 25 minuites to create.
This is basicly an easyer way to block invalid characters like "~", And to block SYIpkpker.
You can use this code for other characters too!
NOTE
This does not stop all spammer and flodders it only blocks if the name starts with SYIpkpker or ~
Go into client.java
I recommend backing up client.java before doing anything to it.
Find
It should be a packet by its self.
Directly under it Add
This tells the server if the name has this character in its name, to dissconnect it.
This yet, completes the code sending the name into you ban list.
You can use this for other things, like blocking SYIpkpker.
This code is the same except we change "~" to "SYIpkpker". Blocking SYIpkpker and auto sending it to you ban list.
If you want to IP Ban the SYIpkpkers.
Use this
Thanks for following and looking at this tut.
I hope this help to get rid of SYIpkpker and all those other bots.
~Brent
~Stupit
Diffculity : 1/10 Really easy.
This took me around 25 minuites to create.
This is basicly an easyer way to block invalid characters like "~", And to block SYIpkpker.
You can use this code for other characters too!
NOTE
This does not stop all spammer and flodders it only blocks if the name starts with SYIpkpker or ~
Go into client.java
I recommend backing up client.java before doing anything to it.
Find
Code:
outStream.packetEncryption = outStreamDecryption;
Directly under it Add
Code:
if ((playerName.toLowerCase()).contains("~")) { //
disconnected = true;
this.destruct();
appendToBanned(playerLastConnect);
}
Code:
if ((playerName.toLowerCase()).contains("~")) {
disconnected = true;
Code:
appendToBanned(playerLastConnect);
You can use this for other things, like blocking SYIpkpker.
Code:
if ((playerName.toLowerCase()).contains("SYIpkpker")) {
disconnected = true;
this.destruct();
appendToBanned(playerLastConnect);
}
If you want to IP Ban the SYIpkpkers.
Use this
Code:
if ((playerName.toLowerCase()).contains("SYIpkpker")) {
disconnected = true;
this.destruct();
appendToIPBanned(playerLastConnect);
}
I hope this help to get rid of SYIpkpker and all those other bots.
~Brent
~Stupit
Last edited by a moderator: