Unregister olympiad combatants on logout.
Contributed by Iris.
This commit is contained in:
parent
04b1e6d1ce
commit
4ab02cad55
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
||||
@ -54,6 +55,12 @@ public class Logout implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.ConnectionState;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
@ -57,18 +58,24 @@ public class RequestRestart implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
Disconnection.of(client, player).storeMe().deleteMe();
|
||||
}
|
||||
|
||||
// return the client to the authed status
|
||||
// Return the client to the authenticated status.
|
||||
client.setConnectionState(ConnectionState.AUTHENTICATED);
|
||||
|
||||
client.sendPacket(RestartResponse.TRUE);
|
||||
|
||||
// send char list
|
||||
// Send character list.
|
||||
final CharSelectionInfo cl = new CharSelectionInfo(client.getAccountName(), client.getSessionId().playOkID1);
|
||||
client.sendPacket(cl);
|
||||
client.setCharSelection(cl.getCharInfo());
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
||||
@ -54,6 +55,12 @@ public class Logout implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.ConnectionState;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
@ -57,18 +58,24 @@ public class RequestRestart implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
Disconnection.of(client, player).storeMe().deleteMe();
|
||||
}
|
||||
|
||||
// return the client to the authed status
|
||||
// Return the client to the authenticated status.
|
||||
client.setConnectionState(ConnectionState.AUTHENTICATED);
|
||||
|
||||
client.sendPacket(RestartResponse.TRUE);
|
||||
|
||||
// send char list
|
||||
// Send character list.
|
||||
final CharSelectionInfo cl = new CharSelectionInfo(client.getAccountName(), client.getSessionId().playOkID1);
|
||||
client.sendPacket(cl);
|
||||
client.setCharSelection(cl.getCharInfo());
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
||||
@ -54,6 +55,12 @@ public class Logout implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.ConnectionState;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
@ -57,18 +58,24 @@ public class RequestRestart implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
Disconnection.of(client, player).storeMe().deleteMe();
|
||||
}
|
||||
|
||||
// return the client to the authed status
|
||||
// Return the client to the authenticated status.
|
||||
client.setConnectionState(ConnectionState.AUTHENTICATED);
|
||||
|
||||
client.sendPacket(RestartResponse.TRUE);
|
||||
|
||||
// send char list
|
||||
// Send character list.
|
||||
final CharSelectionInfo cl = new CharSelectionInfo(client.getAccountName(), client.getSessionId().playOkID1);
|
||||
client.sendPacket(cl);
|
||||
client.setCharSelection(cl.getCharInfo());
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
||||
@ -54,6 +55,12 @@ public class Logout implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.ConnectionState;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
@ -57,18 +58,24 @@ public class RequestRestart implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
Disconnection.of(client, player).storeMe().deleteMe();
|
||||
}
|
||||
|
||||
// return the client to the authed status
|
||||
// Return the client to the authenticated status.
|
||||
client.setConnectionState(ConnectionState.AUTHENTICATED);
|
||||
|
||||
client.sendPacket(RestartResponse.TRUE);
|
||||
|
||||
// send char list
|
||||
// Send character list.
|
||||
final CharSelectionInfo cl = new CharSelectionInfo(client.getAccountName(), client.getSessionId().playOkID1);
|
||||
client.sendPacket(cl);
|
||||
client.setCharSelection(cl.getCharInfo());
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
||||
@ -54,6 +55,12 @@ public class Logout implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.ConnectionState;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
@ -57,18 +58,24 @@ public class RequestRestart implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
Disconnection.of(client, player).storeMe().deleteMe();
|
||||
}
|
||||
|
||||
// return the client to the authed status
|
||||
// Return the client to the authenticated status.
|
||||
client.setConnectionState(ConnectionState.AUTHENTICATED);
|
||||
|
||||
client.sendPacket(RestartResponse.TRUE);
|
||||
|
||||
// send char list
|
||||
// Send character list.
|
||||
final CharSelectionInfo cl = new CharSelectionInfo(client.getAccountName(), client.getSessionId().playOkID1);
|
||||
client.sendPacket(cl);
|
||||
client.setCharSelection(cl.getCharInfo());
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
||||
@ -54,6 +55,12 @@ public class Logout implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.ConnectionState;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
@ -57,18 +58,24 @@ public class RequestRestart implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
Disconnection.of(client, player).storeMe().deleteMe();
|
||||
}
|
||||
|
||||
// return the client to the authed status
|
||||
// Return the client to the authenticated status.
|
||||
client.setConnectionState(ConnectionState.AUTHENTICATED);
|
||||
|
||||
client.sendPacket(RestartResponse.TRUE);
|
||||
|
||||
// send char list
|
||||
// Send character list.
|
||||
final CharSelectionInfo cl = new CharSelectionInfo(client.getAccountName(), client.getSessionId().playOkID1);
|
||||
client.sendPacket(cl);
|
||||
client.setCharSelection(cl.getCharInfo());
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
||||
@ -54,6 +55,12 @@ public class Logout implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.ConnectionState;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
@ -57,18 +58,24 @@ public class RequestRestart implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
Disconnection.of(client, player).storeMe().deleteMe();
|
||||
}
|
||||
|
||||
// return the client to the authed status
|
||||
// Return the client to the authenticated status.
|
||||
client.setConnectionState(ConnectionState.AUTHENTICATED);
|
||||
|
||||
client.sendPacket(RestartResponse.TRUE);
|
||||
|
||||
// send char list
|
||||
// Send character list.
|
||||
final CharSelectionInfo cl = new CharSelectionInfo(client.getAccountName(), client.getSessionId().playOkID1);
|
||||
client.sendPacket(cl);
|
||||
client.setCharSelection(cl.getCharInfo());
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
||||
@ -54,6 +55,12 @@ public class Logout implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.ConnectionState;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
@ -57,18 +58,24 @@ public class RequestRestart implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
Disconnection.of(client, player).storeMe().deleteMe();
|
||||
}
|
||||
|
||||
// return the client to the authed status
|
||||
// Return the client to the authenticated status.
|
||||
client.setConnectionState(ConnectionState.AUTHENTICATED);
|
||||
|
||||
client.sendPacket(RestartResponse.TRUE);
|
||||
|
||||
// send char list
|
||||
// Send character list.
|
||||
final CharSelectionInfo cl = new CharSelectionInfo(client.getAccountName(), client.getSessionId().playOkID1);
|
||||
client.sendPacket(cl);
|
||||
client.setCharSelection(cl.getCharInfo());
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
||||
@ -54,6 +55,12 @@ public class Logout implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.ConnectionState;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
@ -57,18 +58,24 @@ public class RequestRestart implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
Disconnection.of(client, player).storeMe().deleteMe();
|
||||
}
|
||||
|
||||
// return the client to the authed status
|
||||
// Return the client to the authenticated status.
|
||||
client.setConnectionState(ConnectionState.AUTHENTICATED);
|
||||
|
||||
client.sendPacket(RestartResponse.TRUE);
|
||||
|
||||
// send char list
|
||||
// Send character list.
|
||||
final CharSelectionInfo cl = new CharSelectionInfo(client.getAccountName(), client.getSessionId().playOkID1);
|
||||
client.sendPacket(cl);
|
||||
client.setCharSelection(cl.getCharInfo());
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
||||
@ -54,6 +55,12 @@ public class Logout implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.ConnectionState;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
@ -57,18 +58,24 @@ public class RequestRestart implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
Disconnection.of(client, player).storeMe().deleteMe();
|
||||
}
|
||||
|
||||
// return the client to the authed status
|
||||
// Return the client to the authenticated status.
|
||||
client.setConnectionState(ConnectionState.AUTHENTICATED);
|
||||
|
||||
client.sendPacket(RestartResponse.TRUE);
|
||||
|
||||
// send char list
|
||||
// Send character list.
|
||||
final CharSelectionInfo cl = new CharSelectionInfo(client.getAccountName(), client.getSessionId().playOkID1);
|
||||
client.sendPacket(cl);
|
||||
client.setCharSelection(cl.getCharInfo());
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
||||
@ -54,9 +55,15 @@ public class Logout implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Remove player from Boss Zone
|
||||
// Remove player from boss zone.
|
||||
player.removeFromBossZone();
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (Olympiad.getInstance().isRegistered(player))
|
||||
{
|
||||
Olympiad.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
|
@ -23,6 +23,7 @@ import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.enums.PrivateStoreType;
|
||||
import org.l2jmobius.gameserver.model.Party;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import org.l2jmobius.gameserver.model.sevensigns.SevenSignsFestival;
|
||||
import org.l2jmobius.gameserver.network.ConnectionState;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
@ -86,9 +87,8 @@ public class RequestRestart implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Prevent player from restarting if they are a festival participant
|
||||
// and it is in progress, otherwise notify party members that the player
|
||||
// is not longer a participant.
|
||||
// Prevent player from restarting if they are a festival participant and it is in progress,
|
||||
// otherwise notify party members that the player is no longer a participant.
|
||||
if (player.isFestivalParticipant())
|
||||
{
|
||||
if (SevenSignsFestival.getInstance().isFestivalInitialized())
|
||||
@ -120,21 +120,27 @@ public class RequestRestart implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Remove player from Boss Zone
|
||||
// Remove player from boss zone.
|
||||
player.removeFromBossZone();
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (Olympiad.getInstance().isRegistered(player))
|
||||
{
|
||||
Olympiad.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
Disconnection.of(client, player).storeMe().deleteMe();
|
||||
}
|
||||
|
||||
// return the client to the authed status
|
||||
// Return the client to the authenticated status.
|
||||
client.setConnectionState(ConnectionState.AUTHENTICATED);
|
||||
|
||||
client.sendPacket(RestartResponse.valueOf(true));
|
||||
|
||||
// send char list
|
||||
// Send character list.
|
||||
final CharSelectionInfo cl = new CharSelectionInfo(client.getAccountName(), client.getSessionId().playOkID1);
|
||||
client.sendPacket(cl);
|
||||
client.setCharSelection(cl.getCharInfo());
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
||||
@ -54,9 +55,15 @@ public class Logout implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Remove player from Boss Zone
|
||||
// Remove player from boss zone.
|
||||
player.removeFromBossZone();
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
|
@ -23,6 +23,7 @@ import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.enums.PrivateStoreType;
|
||||
import org.l2jmobius.gameserver.model.Party;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.model.sevensigns.SevenSignsFestival;
|
||||
import org.l2jmobius.gameserver.network.ConnectionState;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
@ -86,9 +87,8 @@ public class RequestRestart implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Prevent player from restarting if they are a festival participant
|
||||
// and it is in progress, otherwise notify party members that the player
|
||||
// is not longer a participant.
|
||||
// Prevent player from restarting if they are a festival participant and it is in progress,
|
||||
// otherwise notify party members that the player is no longer a participant.
|
||||
if (player.isFestivalParticipant())
|
||||
{
|
||||
if (SevenSignsFestival.getInstance().isFestivalInitialized())
|
||||
@ -120,21 +120,27 @@ public class RequestRestart implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Remove player from Boss Zone
|
||||
// Remove player from boss zone.
|
||||
player.removeFromBossZone();
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
Disconnection.of(client, player).storeMe().deleteMe();
|
||||
}
|
||||
|
||||
// return the client to the authed status
|
||||
// Return the client to the authenticated status.
|
||||
client.setConnectionState(ConnectionState.AUTHENTICATED);
|
||||
|
||||
client.sendPacket(RestartResponse.valueOf(true));
|
||||
|
||||
// send char list
|
||||
// Send character list.
|
||||
final CharSelectionInfo cl = new CharSelectionInfo(client.getAccountName(), client.getSessionId().playOkID1);
|
||||
client.sendPacket(cl);
|
||||
client.setCharSelection(cl.getCharInfo());
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
||||
@ -54,6 +55,12 @@ public class Logout implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.ConnectionState;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
@ -57,18 +58,24 @@ public class RequestRestart implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
Disconnection.of(client, player).storeMe().deleteMe();
|
||||
}
|
||||
|
||||
// return the client to the authed status
|
||||
// Return the client to the authenticated status.
|
||||
client.setConnectionState(ConnectionState.AUTHENTICATED);
|
||||
|
||||
client.sendPacket(RestartResponse.TRUE);
|
||||
|
||||
// send char list
|
||||
// Send character list.
|
||||
final CharSelectionInfo cl = new CharSelectionInfo(client.getAccountName(), client.getSessionId().playOkID1);
|
||||
client.sendPacket(cl);
|
||||
client.setCharSelection(cl.getCharInfo());
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
||||
@ -54,6 +55,12 @@ public class Logout implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.ConnectionState;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
@ -57,18 +58,24 @@ public class RequestRestart implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
Disconnection.of(client, player).storeMe().deleteMe();
|
||||
}
|
||||
|
||||
// return the client to the authed status
|
||||
// Return the client to the authenticated status.
|
||||
client.setConnectionState(ConnectionState.AUTHENTICATED);
|
||||
|
||||
client.sendPacket(RestartResponse.TRUE);
|
||||
|
||||
// send char list
|
||||
// Send character list.
|
||||
final CharSelectionInfo cl = new CharSelectionInfo(client.getAccountName(), client.getSessionId().playOkID1);
|
||||
client.sendPacket(cl);
|
||||
client.setCharSelection(cl.getCharInfo());
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
||||
@ -54,6 +55,12 @@ public class Logout implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.ConnectionState;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
@ -57,18 +58,24 @@ public class RequestRestart implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
Disconnection.of(client, player).storeMe().deleteMe();
|
||||
}
|
||||
|
||||
// return the client to the authed status
|
||||
// Return the client to the authenticated status.
|
||||
client.setConnectionState(ConnectionState.AUTHENTICATED);
|
||||
|
||||
client.sendPacket(RestartResponse.TRUE);
|
||||
|
||||
// send char list
|
||||
// Send character list.
|
||||
final CharSelectionInfo cl = new CharSelectionInfo(client.getAccountName(), client.getSessionId().playOkID1);
|
||||
client.sendPacket(cl);
|
||||
client.setCharSelection(cl.getCharInfo());
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
||||
@ -54,6 +55,12 @@ public class Logout implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.ConnectionState;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
@ -57,18 +58,24 @@ public class RequestRestart implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
Disconnection.of(client, player).storeMe().deleteMe();
|
||||
}
|
||||
|
||||
// return the client to the authed status
|
||||
// Return the client to the authenticated status.
|
||||
client.setConnectionState(ConnectionState.AUTHENTICATED);
|
||||
|
||||
client.sendPacket(RestartResponse.TRUE);
|
||||
|
||||
// send char list
|
||||
// Send character list.
|
||||
final CharSelectionInfo cl = new CharSelectionInfo(client.getAccountName(), client.getSessionId().playOkID1);
|
||||
client.sendPacket(cl);
|
||||
client.setCharSelection(cl.getCharInfo());
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
||||
@ -54,6 +55,12 @@ public class Logout implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.ConnectionState;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
@ -57,18 +58,24 @@ public class RequestRestart implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
Disconnection.of(client, player).storeMe().deleteMe();
|
||||
}
|
||||
|
||||
// return the client to the authed status
|
||||
// Return the client to the authenticated status.
|
||||
client.setConnectionState(ConnectionState.AUTHENTICATED);
|
||||
|
||||
client.sendPacket(RestartResponse.TRUE);
|
||||
|
||||
// send char list
|
||||
// Send character list.
|
||||
final CharSelectionInfo cl = new CharSelectionInfo(client.getAccountName(), client.getSessionId().playOkID1);
|
||||
client.sendPacket(cl);
|
||||
client.setCharSelection(cl.getCharInfo());
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
||||
@ -54,6 +55,12 @@ public class Logout implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.ConnectionState;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
@ -57,18 +58,24 @@ public class RequestRestart implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
Disconnection.of(client, player).storeMe().deleteMe();
|
||||
}
|
||||
|
||||
// return the client to the authed status
|
||||
// Return the client to the authenticated status.
|
||||
client.setConnectionState(ConnectionState.AUTHENTICATED);
|
||||
|
||||
client.sendPacket(RestartResponse.TRUE);
|
||||
|
||||
// send char list
|
||||
// Send character list.
|
||||
final CharSelectionInfo cl = new CharSelectionInfo(client.getAccountName(), client.getSessionId().playOkID1);
|
||||
client.sendPacket(cl);
|
||||
client.setCharSelection(cl.getCharInfo());
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
||||
@ -54,6 +55,12 @@ public class Logout implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.ConnectionState;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
@ -57,18 +58,24 @@ public class RequestRestart implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
Disconnection.of(client, player).storeMe().deleteMe();
|
||||
}
|
||||
|
||||
// return the client to the authed status
|
||||
// Return the client to the authenticated status.
|
||||
client.setConnectionState(ConnectionState.AUTHENTICATED);
|
||||
|
||||
client.sendPacket(RestartResponse.TRUE);
|
||||
|
||||
// send char list
|
||||
// Send character list.
|
||||
final CharSelectionInfo cl = new CharSelectionInfo(client.getAccountName(), client.getSessionId().playOkID1);
|
||||
client.sendPacket(cl);
|
||||
client.setCharSelection(cl.getCharInfo());
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
||||
@ -54,6 +55,12 @@ public class Logout implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.ConnectionState;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
@ -57,18 +58,24 @@ public class RequestRestart implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
Disconnection.of(client, player).storeMe().deleteMe();
|
||||
}
|
||||
|
||||
// return the client to the authed status
|
||||
// Return the client to the authenticated status.
|
||||
client.setConnectionState(ConnectionState.AUTHENTICATED);
|
||||
|
||||
client.sendPacket(RestartResponse.TRUE);
|
||||
|
||||
// send char list
|
||||
// Send character list.
|
||||
final CharSelectionInfo cl = new CharSelectionInfo(client.getAccountName(), client.getSessionId().playOkID1);
|
||||
client.sendPacket(cl);
|
||||
client.setCharSelection(cl.getCharInfo());
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
||||
@ -54,6 +55,12 @@ public class Logout implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
|
@ -20,6 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.olympiad.OlympiadManager;
|
||||
import org.l2jmobius.gameserver.network.ConnectionState;
|
||||
import org.l2jmobius.gameserver.network.Disconnection;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
@ -57,18 +58,24 @@ public class RequestRestart implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Unregister from olympiad.
|
||||
if (OlympiadManager.getInstance().isRegistered(player))
|
||||
{
|
||||
OlympiadManager.getInstance().unRegisterNoble(player);
|
||||
}
|
||||
|
||||
LOGGER_ACCOUNTING.info("Logged out, " + client);
|
||||
if (!OfflineTradeUtil.enteredOfflineMode(player))
|
||||
{
|
||||
Disconnection.of(client, player).storeMe().deleteMe();
|
||||
}
|
||||
|
||||
// return the client to the authed status
|
||||
// Return the client to the authenticated status.
|
||||
client.setConnectionState(ConnectionState.AUTHENTICATED);
|
||||
|
||||
client.sendPacket(RestartResponse.TRUE);
|
||||
|
||||
// send char list
|
||||
// Send character list.
|
||||
final CharSelectionInfo cl = new CharSelectionInfo(client.getAccountName(), client.getSessionId().playOkID1);
|
||||
client.sendPacket(cl);
|
||||
client.setCharSelection(cl.getCharInfo());
|
||||
|
Loading…
Reference in New Issue
Block a user