Rofl Whats The Void For Destruct? >_>
|
|
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:
Step 2: Replace it with:if(checkbannedips() == 5)
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.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.");
}
Credits: 0% for me posting100% for Mod Steve (Shiver)
Rofl Whats The Void For Destruct? >_>
Destructing the socket ... Can also use
[PHP]s.close()/PHP]

| « Easy teleport void - makes it easier to program teleports | Xmas event! » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |