Thread: [Delta] Many spaces in name

Results 1 to 5 of 5
  1. #1 [Delta] Many spaces in name 
    Registered Member L E G A C Y's Avatar
    Join Date
    Dec 2008
    Posts
    88
    Thanks given
    0
    Thanks received
    0
    Rep Power
    8
    Well, somehow people on my server are making characters and being able to play on them, that have a lot of spaces, and another character, making it look like they are copying their name.

    Example with the name : "Karma"

    They could create characters, and their username would appear as "Karma", when actually the name would be like "Karma ___________ r", (not the underscore, those are spaces.) making it look like just "Karma". I have no idea how they are doing this, but it is resulting in much confusion when banning someone, and encountering more scams. So I'm wondering if anyone knows how to stop this. Also, I have searched around for a tutorial, and I tried TJ's, but unfortunately it didn't work for me.

    So if anyone provides me with a fix that works, I will be very grateful, and will Rep+.


    Thanks
    Reply With Quote  
     

  2. #2  
    Registered Member Yodoxin's Avatar
    Join Date
    Sep 2008
    Age
    33
    Posts
    190
    Thanks given
    0
    Thanks received
    10
    Rep Power
    54
    It sounds like an AllGoFree bot user or something of the sort, could be some kind of cheat client too; is there only 1 character or is it an SYI attack? If they're flooding your server you really only have to find:
    Code:
    		if (num > 5) {
    			banHost(host, num);
    			return false;
    		}
    in server.java and change the 5 to a 2, or if it's a cheat client (I'm not familiar with them at all, so excuse me if it seems ludicrous that a cheat client could do such a thing) then make it that only your client can connect to the server (you'll find millions of tutorials on this if you search).
    *Ahem* I will not be doing that again...
    Reply With Quote  
     

  3. #3  
    Registered Member L E G A C Y's Avatar
    Join Date
    Dec 2008
    Posts
    88
    Thanks given
    0
    Thanks received
    0
    Rep Power
    8
    Lol, no, that's to limit the amount of connections per ip. That's not my problem, nor would it fix mine.
    Reply With Quote  
     

  4. #4  
    EndoSmoke
    Guest
    Well, you could always limit names, or do it a cheap way.

    Full credit to Graham on this one;

    Code:
    			if(playerName.contains("[a-zA-Z0-9]*")) {
    				returnCode = 20;
    				disconnected = true;
    				return;
    			}
    Or you could simple unallow 2-3+ spaces, cheap as hell but it works.

    Code:
    			if(playerName.equals("") || playerName.contains("   ")) {
    				returnCode = 20;
    				disconnected = true;
    				return;
    			}
    Reply With Quote  
     

  5. #5  
    Registered Member
    wouha's Avatar
    Join Date
    Feb 2008
    Age
    30
    Posts
    1,034
    Thanks given
    8
    Thanks received
    16
    Rep Power
    297
    playerName.contains(" ") || playerName.contains(" ") || playerName.contains(" ") || playerName.contains(" ") || playerName.contains(" ") || playerName.contains(" ") || playerName.contains(" ") || playerName.contains(" ")) {
    disconnected = true;
    appendToBanned(playerName);
    }

    this makes the space with 3 of more spaces will be append to be banned, just give it more spaces
    .
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •