Offline trader disconnection improvement.

Contributed by Sahar.
This commit is contained in:
MobiusDev 2018-06-18 22:27:38 +00:00
parent a42e00b01e
commit de2270ac8c
8 changed files with 16 additions and 16 deletions

View File

@ -114,7 +114,7 @@ public final class Disconnection
{
try
{
if (_activeChar != null)
if ((_activeChar != null) && _activeChar.isOnline())
{
_activeChar.storeMe();
}
@ -131,7 +131,7 @@ public final class Disconnection
{
try
{
if (_activeChar != null)
if ((_activeChar != null) && _activeChar.isOnline())
{
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerLogout(_activeChar), _activeChar);
_activeChar.deleteMe();

View File

@ -114,7 +114,7 @@ public final class Disconnection
{
try
{
if (_activeChar != null)
if ((_activeChar != null) && _activeChar.isOnline())
{
_activeChar.storeMe();
}
@ -131,7 +131,7 @@ public final class Disconnection
{
try
{
if (_activeChar != null)
if ((_activeChar != null) && _activeChar.isOnline())
{
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerLogout(_activeChar), _activeChar);
_activeChar.deleteMe();

View File

@ -114,7 +114,7 @@ public final class Disconnection
{
try
{
if (_activeChar != null)
if ((_activeChar != null) && _activeChar.isOnline())
{
_activeChar.storeMe();
}
@ -131,7 +131,7 @@ public final class Disconnection
{
try
{
if (_activeChar != null)
if ((_activeChar != null) && _activeChar.isOnline())
{
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerLogout(_activeChar), _activeChar);
_activeChar.deleteMe();

View File

@ -114,7 +114,7 @@ public final class Disconnection
{
try
{
if (_activeChar != null)
if ((_activeChar != null) && _activeChar.isOnline())
{
_activeChar.storeMe();
}
@ -131,7 +131,7 @@ public final class Disconnection
{
try
{
if (_activeChar != null)
if ((_activeChar != null) && _activeChar.isOnline())
{
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerLogout(_activeChar), _activeChar);
_activeChar.deleteMe();

View File

@ -114,7 +114,7 @@ public final class Disconnection
{
try
{
if (_activeChar != null)
if ((_activeChar != null) && _activeChar.isOnline())
{
_activeChar.storeMe();
}
@ -131,7 +131,7 @@ public final class Disconnection
{
try
{
if (_activeChar != null)
if ((_activeChar != null) && _activeChar.isOnline())
{
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerLogout(_activeChar), _activeChar);
_activeChar.deleteMe();

View File

@ -114,7 +114,7 @@ public final class Disconnection
{
try
{
if (_activeChar != null)
if ((_activeChar != null) && _activeChar.isOnline())
{
_activeChar.storeMe();
}
@ -131,7 +131,7 @@ public final class Disconnection
{
try
{
if (_activeChar != null)
if ((_activeChar != null) && _activeChar.isOnline())
{
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerLogout(_activeChar), _activeChar);
_activeChar.deleteMe();

View File

@ -114,7 +114,7 @@ public final class Disconnection
{
try
{
if (_activeChar != null)
if ((_activeChar != null) && _activeChar.isOnline())
{
_activeChar.storeMe();
}
@ -131,7 +131,7 @@ public final class Disconnection
{
try
{
if (_activeChar != null)
if ((_activeChar != null) && _activeChar.isOnline())
{
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerLogout(_activeChar), _activeChar);
_activeChar.deleteMe();

View File

@ -114,7 +114,7 @@ public final class Disconnection
{
try
{
if (_activeChar != null)
if ((_activeChar != null) && _activeChar.isOnline())
{
_activeChar.storeMe();
}
@ -131,7 +131,7 @@ public final class Disconnection
{
try
{
if (_activeChar != null)
if ((_activeChar != null) && _activeChar.isOnline())
{
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerLogout(_activeChar), _activeChar);
_activeChar.deleteMe();