Jump to content

Recommended Posts

Posted

No, we dont use this system, we have own, so shut up, if you dont know nothing...

<sarcasm>Oh..My..God.. Wow you have your OWN 50 lines of code?? Really?? Like zomg man you're the bestestest.</sarcasm>

Anyways.. ok so i login to my account and i have all my precious items stolen, and the screen is only showing the last ip of the thief ( which is pobably proxy anyway ). Am i missing something?

  • 3 weeks later...
Posted

trusted seller

 

nikarasprotos = true spammer...

 

its a share or can't u read? where u see here somethings to sell ?

 

ontopic: guess its useless its won't help a player at all... only if the stealer has a static IP :/

Posted

WARNING: Unclosed connection! Trace: com.l2jserver.gameserver.model.entity.ProtectionIP.UpdateLastIP(ProtectionIP.java:92)

java.lang.RuntimeException

at com.l2jserver.L2DatabaseFactory.getConnection(L2DatabaseFactory.java:227)

at com.l2jserver.gameserver.model.entity.ProtectionIP.UpdateLastIP(ProtectionIP.java:92)

at com.l2jserver.gameserver.model.entity.ProtectionIP.onEnterWorld(ProtectionIP.java:50)

at com.l2jserver.gameserver.network.clientpackets.EnterWorld.runImpl(EnterWorld.java:473)

at com.l2jserver.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:62)

at com.l2jserver.gameserver.network.L2GameClient.run(L2GameClient.java:997)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

i got this error anyone knows?

Posted

Replace your static method "UpdateLastIP" with

 

public static void UpdateLastIP(L2PcInstance player ,String user)
{
	String address = player.getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress();
	java.sql.Connection con = null;
	try
	{
		con = L2DatabaseFactory.getInstance().getConnection();
		PreparedStatement statement = con.prepareStatement("UPDATE accounts SET lastIP=? WHERE login=?");
		statement.setString(1, address);
		statement.setString(2, user);
		statement.execute();
		statement.close();
	}
	catch(Exception e)
	{
		e.printStackTrace();
	}
	finally
	{
		try
		{
			con.close();
		}
		catch(Exception e)
		{
			e.printStackTrace();
		}
	}
}

Posted

Now this is really awesome!!!!! Btw how much resources does it take? Lets say 500 online players on server...All log on after rr...Wont it lag?

 

No

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