Offline trader disconnection improvement.
Contributed by Sahar.
This commit is contained in:
@@ -114,7 +114,7 @@ public final class Disconnection
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (_activeChar != null)
|
if ((_activeChar != null) && _activeChar.isOnline())
|
||||||
{
|
{
|
||||||
_activeChar.storeMe();
|
_activeChar.storeMe();
|
||||||
}
|
}
|
||||||
@@ -131,7 +131,7 @@ public final class Disconnection
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (_activeChar != null)
|
if ((_activeChar != null) && _activeChar.isOnline())
|
||||||
{
|
{
|
||||||
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerLogout(_activeChar), _activeChar);
|
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerLogout(_activeChar), _activeChar);
|
||||||
_activeChar.deleteMe();
|
_activeChar.deleteMe();
|
||||||
|
@@ -114,7 +114,7 @@ public final class Disconnection
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (_activeChar != null)
|
if ((_activeChar != null) && _activeChar.isOnline())
|
||||||
{
|
{
|
||||||
_activeChar.storeMe();
|
_activeChar.storeMe();
|
||||||
}
|
}
|
||||||
@@ -131,7 +131,7 @@ public final class Disconnection
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (_activeChar != null)
|
if ((_activeChar != null) && _activeChar.isOnline())
|
||||||
{
|
{
|
||||||
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerLogout(_activeChar), _activeChar);
|
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerLogout(_activeChar), _activeChar);
|
||||||
_activeChar.deleteMe();
|
_activeChar.deleteMe();
|
||||||
|
@@ -114,7 +114,7 @@ public final class Disconnection
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (_activeChar != null)
|
if ((_activeChar != null) && _activeChar.isOnline())
|
||||||
{
|
{
|
||||||
_activeChar.storeMe();
|
_activeChar.storeMe();
|
||||||
}
|
}
|
||||||
@@ -131,7 +131,7 @@ public final class Disconnection
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (_activeChar != null)
|
if ((_activeChar != null) && _activeChar.isOnline())
|
||||||
{
|
{
|
||||||
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerLogout(_activeChar), _activeChar);
|
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerLogout(_activeChar), _activeChar);
|
||||||
_activeChar.deleteMe();
|
_activeChar.deleteMe();
|
||||||
|
@@ -114,7 +114,7 @@ public final class Disconnection
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (_activeChar != null)
|
if ((_activeChar != null) && _activeChar.isOnline())
|
||||||
{
|
{
|
||||||
_activeChar.storeMe();
|
_activeChar.storeMe();
|
||||||
}
|
}
|
||||||
@@ -131,7 +131,7 @@ public final class Disconnection
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (_activeChar != null)
|
if ((_activeChar != null) && _activeChar.isOnline())
|
||||||
{
|
{
|
||||||
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerLogout(_activeChar), _activeChar);
|
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerLogout(_activeChar), _activeChar);
|
||||||
_activeChar.deleteMe();
|
_activeChar.deleteMe();
|
||||||
|
@@ -114,7 +114,7 @@ public final class Disconnection
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (_activeChar != null)
|
if ((_activeChar != null) && _activeChar.isOnline())
|
||||||
{
|
{
|
||||||
_activeChar.storeMe();
|
_activeChar.storeMe();
|
||||||
}
|
}
|
||||||
@@ -131,7 +131,7 @@ public final class Disconnection
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (_activeChar != null)
|
if ((_activeChar != null) && _activeChar.isOnline())
|
||||||
{
|
{
|
||||||
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerLogout(_activeChar), _activeChar);
|
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerLogout(_activeChar), _activeChar);
|
||||||
_activeChar.deleteMe();
|
_activeChar.deleteMe();
|
||||||
|
@@ -114,7 +114,7 @@ public final class Disconnection
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (_activeChar != null)
|
if ((_activeChar != null) && _activeChar.isOnline())
|
||||||
{
|
{
|
||||||
_activeChar.storeMe();
|
_activeChar.storeMe();
|
||||||
}
|
}
|
||||||
@@ -131,7 +131,7 @@ public final class Disconnection
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (_activeChar != null)
|
if ((_activeChar != null) && _activeChar.isOnline())
|
||||||
{
|
{
|
||||||
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerLogout(_activeChar), _activeChar);
|
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerLogout(_activeChar), _activeChar);
|
||||||
_activeChar.deleteMe();
|
_activeChar.deleteMe();
|
||||||
|
@@ -114,7 +114,7 @@ public final class Disconnection
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (_activeChar != null)
|
if ((_activeChar != null) && _activeChar.isOnline())
|
||||||
{
|
{
|
||||||
_activeChar.storeMe();
|
_activeChar.storeMe();
|
||||||
}
|
}
|
||||||
@@ -131,7 +131,7 @@ public final class Disconnection
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (_activeChar != null)
|
if ((_activeChar != null) && _activeChar.isOnline())
|
||||||
{
|
{
|
||||||
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerLogout(_activeChar), _activeChar);
|
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerLogout(_activeChar), _activeChar);
|
||||||
_activeChar.deleteMe();
|
_activeChar.deleteMe();
|
||||||
|
@@ -114,7 +114,7 @@ public final class Disconnection
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (_activeChar != null)
|
if ((_activeChar != null) && _activeChar.isOnline())
|
||||||
{
|
{
|
||||||
_activeChar.storeMe();
|
_activeChar.storeMe();
|
||||||
}
|
}
|
||||||
@@ -131,7 +131,7 @@ public final class Disconnection
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (_activeChar != null)
|
if ((_activeChar != null) && _activeChar.isOnline())
|
||||||
{
|
{
|
||||||
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerLogout(_activeChar), _activeChar);
|
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerLogout(_activeChar), _activeChar);
|
||||||
_activeChar.deleteMe();
|
_activeChar.deleteMe();
|
||||||
|
Reference in New Issue
Block a user