xAddytzu Posted June 8, 2010 Author Posted June 8, 2010 I dont think its useful,gms can check logs and its useless for a player even if he knows the ip that stole him >_>. gms can't read logs >.> do you read all logs if you are admin ? Quote
DnR Posted June 8, 2010 Posted June 8, 2010 Just find the right programs :D Anyway,it hasnt been shared again and its a unique and good idea. Quote
Versus Posted June 8, 2010 Posted June 8, 2010 I have error how fix? delete getSocketChannel().socket() Quote
forsas Posted June 8, 2010 Posted June 8, 2010 delete getSocketChannel().socket() Ok delete now no don't show error but no working no show last ip login my friend login and i login but nothing Quote
forsas Posted June 9, 2010 Posted June 9, 2010 me no work this code? You work? how i paste all right but don't work. Quote
xAddytzu Posted June 9, 2010 Author Posted June 9, 2010 me no work this code? You work? how i paste all right but don't work. ohh, thanks for feedback Index: LoginController.java if (ok) { client.setAccessLevel(access); client.setLastServer(lastServer); - statement = con.prepareStatement("UPDATE accounts SET lastactive=?, lastIP=? WHERE login=?"); + statement = con.prepareStatement("UPDATE accounts SET lastactive=? WHERE login=?"); statement.setLong(1, System.currentTimeMillis()); - statement.setString(2, address.getHostAddress()); - statement.setString(3, user); + statement.setString(2, user) statement.execute(); statement.close(); } Quote
forsas Posted June 9, 2010 Posted June 9, 2010 ohh, thanks for feedback Index: LoginController.java if (ok) { client.setAccessLevel(access); client.setLastServer(lastServer); - statement = con.prepareStatement("UPDATE accounts SET lastactive=?, lastIP=? WHERE login=?"); + statement = con.prepareStatement("UPDATE accounts SET lastactive=? WHERE login=?"); statement.setLong(1, System.currentTimeMillis()); - statement.setString(2, address.getHostAddress()); - statement.setString(3, user); + statement.setString(2, user) statement.execute(); statement.close(); } Ok now i try and tell you :) Quote
forsas Posted June 9, 2010 Posted June 9, 2010 I remember this in L2eXtreme. Cool code. This code also in L2Java.com :P Quote
xAddytzu Posted June 9, 2010 Author Posted June 9, 2010 Now work perfect. I love you :D :D Thanks again for feedback Quote
forsas Posted June 9, 2010 Posted June 9, 2010 Thanks again for feedback Okay :) Now you can tell me how add voicecommand .loginfo when player write this him show 30 last ip logins html :o Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.