Jump to content

Recommended Posts

Posted

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 ?

Posted

Just find the right programs :D

Anyway,it hasnt been shared again and its a unique and good idea.

Posted

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

Posted

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();
		}

Posted

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 :)

Posted

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock