Jump to content

Recommended Posts

Posted

 

Okay :) Now you can tell me how add voicecommand  .loginfo when player write this him show 30 last ip logins html  :o

u need to store last 30 ip adress that mean sql store ...

not so practically i think

Posted

 

 

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

Very Nice And gz for share but fix that [statement.setString(2, user) ] Add one ( ; ) in the end of line somenone maybe don't know ;)

[statement.setString(2, user);]

 

Gzz Again Dude and thanks for share :D

Posted

Very Nice And gz for share but fix that [statement.setString(2, user) ] Add one ( ; ) in the end of line somenone maybe don't know ;)

[statement.setString(2, user);]

 

Gzz Again Dude and thanks for share :D

Done

Posted

Huh, and You will die from a message on enterworld ?

 

No, but some players would probably freak seeing a different IP displayed every time they log in. The idea is good, but it does not really have a lot of use aside from being cute.

Posted

No, but some players would probably freak seeing a different IP displayed every time they log in. The idea is good, but it does not really have a lot of use aside from being cute.

You can make a handler for shutdown the system

  • 3 months later...

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