Jump to content
  • 0

[Help]Unique errors in gameserver console.


Question

Posted

Problem was with this line

  if (this.getActiveChar().isFarmBot())

Exception in thread "SelectorThread-364" java.lang.NullPointerException

        at com.l2jserver.gameserver.network.L2GameClient.onForcedDisconnecti

2GameClient.java:634)

        at org.mmocore.network.SelectorThread.readPacket(SelectorThread.java

)

        at org.mmocore.network.SelectorThread.run(SelectorThread.java:176)

So as nevermore told me i changed to this...

		if (getActiveChar() != null && getActiveChar().isFarmBot())

And now error is

Exception in thread "SelectorThread-364" java.lang.NullPointerException

        at com.l2jserver.gameserver.network.L2GameClient.onForcedDisconnection(L

2GameClient.java:634)

        at org.mmocore.network.SelectorThread.writePacket(SelectorThread.java:50

9)

        at org.mmocore.network.SelectorThread.run(SelectorThread.java:182)

 

Any idias?

 

	@Override
protected void onForcedDisconnection()
{
	if (getActiveChar() != null && getActiveChar().isFarmBot())
	{
		Util.handleIllegalPlayerAction(this.getActiveChar(), "Player: " + this.getActiveChar().getName() + " might use third party program to exploit antibot farm system.", Config.DEFAULT_PUNISH);
	}
	LogRecord record = new LogRecord(Level.WARNING, "Disconnected abnormally");
	record.setParameters(new Object[] { L2GameClient.this });
	_logAccounting.log(record);
}

 

Here is all part of code

2 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.


×
×
  • 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