Thread: Fix IP banning.

Results 1 to 4 of 4
  1. #1 Fix IP banning. 
    ScareCrower
    Guest
    Purpose: To fix IP banning.

    Difficulty: 1/10

    Assumed Knowledge: Copy and Paste.

    Server Base: Project Destiny

    Classes Modified: client.java

    I have noticed that whoever created IP bans was seriously mistaken. It would only not let them in if they were using the same account. If they made a new one, they would continue to log in.

    I have found a simple way to fix all of this.

    Procedure
    Step 1: Find:
    if(checkbannedips() == 5)
    Step 2: Replace it with:

    if(checkbannedips() == 5) {
    destruct();
    returnCode = 4;
    System.out.println(playerName+" failed to logon because their ip is banned.");
    appendToLR(playerName+" failed to logon because their ip is banned.");
    }
    What you have just done: You have just made it so when you IP ban someone, it automaticly checks their IP, and if it is in the bannedips.txt then it is automaticly rejected, and says that their account has been disabled.

    Credits: 0% for me posting 100% for Mod Steve (Shiver)
     

  2. #2  
    Crazy Cam10
    Guest
    Rofl Whats The Void For Destruct? >_>
     

  3. #3  
    × Zenzie ×
    Guest
    Destructing the socket ... Can also use

    [PHP]s.close()/PHP]
     

  4. #4  
    Renown Programmer


    Join Date
    Dec 2006
    Posts
    1,716
    Thanks given
    268
    Thanks received
    217
    Rep Power
    1836
    How about 0% for you posting, because I posted this a few months ago.

    [Only registered and activated users can see links. ]
     


Thread Information
Users Browsing this Thread

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


User Tag List

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