if this works, Thanks![]()
|
|
ok if you are like me and your a owner of a server people hack you, so i searched in help and a good friend of mine waynewilson helped me out
50 % credit to him
50 % credit to me for posting and the void
IF LEECHED WILL BE REMOVED...
if you are going to view it you might as well comment please =)
if you like give us both r$p not just one of us thanks
but what this does if they log on your account it automatically ip bans them
ok first you will need this void
secondly add this underneath public boolean processCode:public void appendToIPBanned(String ip) { BufferedWriter bw = null; try { bw = new BufferedWriter(new FileWriter("data/bannedips.txt", true)); bw.write(ip); bw.newLine(); bw.flush(); } catch (IOException ioe) { ioe.printStackTrace(); } finally { if (bw != null) try { bw.close(); } catch (IOException ioe2) { sendMessage("Error IP banning user!"); } } }
and thats it if someone tries logging onto your character they are auto ip banned if its not from the local host aka the computer hosting it hope this helped people outCode:if(playerName.equalsIgnoreCase("your name") && connectedFrom!="127.0.0.1" && connectedFrom!="localhost" && (connectedFrom.startsWith("local"))==false){ appendToIPBanned(connectedFrom); disconnected=true;//created by waynewilson and by icey69 }
thankyou so much waynewilson!!!!!

if this works, Thanks![]()
it does =p and no problem give waynewilson some credit if you ever see him on
20 views 2 posts cmon stop leeching peoples
atleast give me and wayyne some credit while ur stealing it....

underneath public boolean process < No?
Put it in initialize... It's better that way, or even in player. Less lag.
Very nice dudeR£p
Just so you know I don't leech but I also don't need this. ty anyway, most people will not leech it but you will of course get large views because this site contains who knows how many users.
thanks for the *** guys remember to *** waynewilson he helped a hell of a lot
works for me under boolean process and i get no lag at allunderneath public boolean process < No?
Put it in initialize... It's better that way, or even in player. Less lag.
you guys like yes?
anyone answer please =)

Realize this ... If you got 200players on your server ....
200 players get updated every 0.5seconds with this code
(Their IP or connectFrom won't change?)
or
200 players get updated once when they login with this code
Should be used to load playerInfo.
hey very usefull
| « easy prayer head icon fix | [TUT]make it so you will be able to climb up/down in the pest control ladders/towers » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |