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.Code:outStream.packetEncryption = outStreamDecryption;
Directly under it Add
Code:if ((playerName.toLowerCase()).contains("~")) { // disconnected = true; this.destruct(); appendToBanned(playerLastConnect); }This tells the server if the name has this character in its name, to dissconnect it.Code:if ((playerName.toLowerCase()).contains("~")) { disconnected = true;
This yet, completes the code sending the name into you ban list.Code:appendToBanned(playerLastConnect);
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.Code:if ((playerName.toLowerCase()).contains("SYIpkpker")) { disconnected = true; this.destruct(); appendToBanned(playerLastConnect); }
If you want to IP Ban the SYIpkpkers.
Use this
Thanks for following and looking at this tut.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



Reply With Quote![[TUT - A] [317] How to easily block invaild characters and SYIpkpker.](http://ragezone.com/hyper728.png)

