• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[TUT - A] [317] How to easily block invaild characters and SYIpkpker.

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
Code:
outStream.packetEncryption = outStreamDecryption;
It should be a packet by its self.
Directly under it Add
Code:
            if ((playerName.toLowerCase()).contains("~")) { //
                disconnected = true;
                this.destruct();
                appendToBanned(playerLastConnect);
	   }
Code:
if ((playerName.toLowerCase()).contains("~")) {
 disconnected = true;
This tells the server if the name has this character in its name, to dissconnect it.
Code:
appendToBanned(playerLastConnect);
This yet, completes the code sending the name into you ban list.

You can use this for other things, like blocking SYIpkpker.
Code:
if ((playerName.toLowerCase()).contains("SYIpkpker")) {
                disconnected = true;
                this.destruct();
                appendToBanned(playerLastConnect);
            }
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
Code:
if ((playerName.toLowerCase()).contains("SYIpkpker")) {
                disconnected = true;
                this.destruct();
                appendToIPBanned(playerLastConnect);
            }
Thanks for following and looking at this tut.
I hope this help to get rid of SYIpkpker and all those other bots.
~Brent
~Stupit
 
Last edited by a moderator:
Newbie Spellweaver
Joined
Apr 3, 2007
Messages
29
Reaction score
0
Re: [TUT] How to easily block invaild characters and SYIpkpker.

:D Thanks I have had alot of problems with them SYI's
 
Back
Top