Addition of PacketLogger class.

This commit is contained in:
MobiusDevelopment
2021-12-08 02:37:47 +00:00
parent c166771753
commit e438ab1776
1929 changed files with 6341 additions and 4020 deletions

View File

@@ -0,0 +1,42 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.l2jmobius.gameserver.network;
import java.util.logging.Logger;
/**
* @author Mobius
*/
public class PacketLogger
{
private static final Logger LOGGER = Logger.getLogger(PacketLogger.class.getName());
public static synchronized void warning(String message)
{
LOGGER.warning(message);
}
public static synchronized void info(String message)
{
LOGGER.info(message);
}
public static synchronized void finer(String message)
{
LOGGER.finer(message);
}
}

View File

@@ -26,6 +26,7 @@ import org.l2jmobius.gameserver.model.effects.AbstractEffect;
import org.l2jmobius.gameserver.model.skill.AbnormalType;
import org.l2jmobius.gameserver.model.skill.BuffInfo;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.SystemMessageId;
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
@@ -161,7 +162,7 @@ public class Action implements IClientIncomingPacket
default:
{
// Invalid action detected (probably client cheating), log this
LOGGER.warning("[C] Action: Character: " + player.getName() + " requested invalid action: " + _actionId);
PacketLogger.warning("[C] Action: Character: " + player.getName() + " requested invalid action: " + _actionId);
client.sendPacket(ActionFailed.STATIC_PACKET);
break;
}

View File

@@ -22,6 +22,7 @@ import org.l2jmobius.gameserver.model.TradeList;
import org.l2jmobius.gameserver.model.World;
import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.SystemMessageId;
import org.l2jmobius.gameserver.network.serverpackets.TradeOtherAdd;
import org.l2jmobius.gameserver.network.serverpackets.TradeOwnAdd;
@@ -56,7 +57,7 @@ public class AddTradeItem implements IClientIncomingPacket
final TradeList trade = player.getActiveTradeList();
if (trade == null)
{
LOGGER.warning("Character: " + player.getName() + " requested item:" + _objectId + " add without active tradelist:" + _tradeId);
PacketLogger.warning("Character: " + player.getName() + " requested item:" + _objectId + " add without active tradelist:" + _tradeId);
return;
}
@@ -66,7 +67,7 @@ public class AddTradeItem implements IClientIncomingPacket
// Trade partner not found, cancel trade
if (partner != null)
{
LOGGER.warning("Character:" + player.getName() + " requested invalid trade object: " + _objectId);
PacketLogger.warning("Character:" + player.getName() + " requested invalid trade object: " + _objectId);
}
player.sendPacket(SystemMessageId.THAT_PLAYER_IS_NOT_ONLINE);
player.cancelActiveTrade();

View File

@@ -47,6 +47,7 @@ import org.l2jmobius.gameserver.model.quest.QuestState;
import org.l2jmobius.gameserver.model.quest.State;
import org.l2jmobius.gameserver.network.Disconnection;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.serverpackets.CharCreateFail;
import org.l2jmobius.gameserver.network.serverpackets.CharCreateOk;
import org.l2jmobius.gameserver.network.serverpackets.CharSelectionInfo;
@@ -120,21 +121,21 @@ public class CharacterCreate implements IClientIncomingPacket
if ((_face > 2) || (_face < 0))
{
LOGGER.warning("Character Creation Failure: Character face " + _face + " is invalid. Possible client hack. " + client);
PacketLogger.warning("Character Creation Failure: Character face " + _face + " is invalid. Possible client hack. " + client);
client.sendPacket(new CharCreateFail(CharCreateFail.REASON_CREATION_FAILED));
return;
}
if ((_hairStyle < 0) || ((_sex == 0) && (_hairStyle > 4)) || ((_sex != 0) && (_hairStyle > 6)))
{
LOGGER.warning("Character Creation Failure: Character hair style " + _hairStyle + " is invalid. Possible client hack. " + client);
PacketLogger.warning("Character Creation Failure: Character hair style " + _hairStyle + " is invalid. Possible client hack. " + client);
client.sendPacket(new CharCreateFail(CharCreateFail.REASON_CREATION_FAILED));
return;
}
if ((_hairColor > 3) || (_hairColor < 0))
{
LOGGER.warning("Character Creation Failure: Character hair color " + _hairColor + " is invalid. Possible client hack. " + client);
PacketLogger.warning("Character Creation Failure: Character hair color " + _hairColor + " is invalid. Possible client hack. " + client);
client.sendPacket(new CharCreateFail(CharCreateFail.REASON_CREATION_FAILED));
return;
}
@@ -290,7 +291,7 @@ public class CharacterCreate implements IClientIncomingPacket
final Item item = newChar.getInventory().addItem("Init", ie.getId(), ie.getCount(), newChar, null);
if (item == null)
{
LOGGER.warning("Could not create item during char creation: itemId " + ie.getId() + ", amount " + ie.getCount() + ".");
PacketLogger.warning("Could not create item during char creation: itemId " + ie.getId() + ", amount " + ie.getCount() + ".");
continue;
}

View File

@@ -16,14 +16,13 @@
*/
package org.l2jmobius.gameserver.network.clientpackets;
import java.util.logging.Level;
import org.l2jmobius.commons.network.PacketReader;
import org.l2jmobius.gameserver.model.CharSelectInfoPackage;
import org.l2jmobius.gameserver.model.events.Containers;
import org.l2jmobius.gameserver.model.events.EventDispatcher;
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerDelete;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.serverpackets.CharDeleteFail;
import org.l2jmobius.gameserver.network.serverpackets.CharDeleteSuccess;
import org.l2jmobius.gameserver.network.serverpackets.CharSelectionInfo;
@@ -82,7 +81,7 @@ public class CharacterDelete implements IClientIncomingPacket
}
catch (Exception e)
{
LOGGER.log(Level.SEVERE, "Error:", e);
PacketLogger.warning(getClass().getSimpleName() + ": " + e.getMessage());
}
final CharSelectionInfo cl = new CharSelectionInfo(client.getAccountName(), client.getSessionId().playOkID1, 0);

View File

@@ -72,6 +72,7 @@ import org.l2jmobius.gameserver.model.zone.ZoneId;
import org.l2jmobius.gameserver.network.ConnectionState;
import org.l2jmobius.gameserver.network.Disconnection;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.SystemMessageId;
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
import org.l2jmobius.gameserver.network.serverpackets.CreatureSay;
@@ -141,7 +142,7 @@ public class EnterWorld implements IClientIncomingPacket
final Player player = client.getPlayer();
if (player == null)
{
LOGGER.warning("EnterWorld failed! player returned 'null'.");
PacketLogger.warning("EnterWorld failed! player returned 'null'.");
Disconnection.of(client).defaultSequence(LeaveWorld.STATIC_PACKET);
return;
}

View File

@@ -25,9 +25,13 @@ import org.l2jmobius.gameserver.network.GameClient;
*/
public class ExGetOnAirShip implements IClientIncomingPacket
{
@SuppressWarnings("unused")
private int _x;
@SuppressWarnings("unused")
private int _y;
@SuppressWarnings("unused")
private int _z;
@SuppressWarnings("unused")
private int _shipId;
@Override
@@ -43,9 +47,9 @@ public class ExGetOnAirShip implements IClientIncomingPacket
@Override
public void run(GameClient client)
{
LOGGER.info("[T1:ExGetOnAirShip] x: " + _x);
LOGGER.info("[T1:ExGetOnAirShip] y: " + _y);
LOGGER.info("[T1:ExGetOnAirShip] z: " + _z);
LOGGER.info("[T1:ExGetOnAirShip] ship ID: " + _shipId);
// PacketLogger.info("[T1:ExGetOnAirShip] x: " + _x);
// PacketLogger.info("[T1:ExGetOnAirShip] y: " + _y);
// PacketLogger.info("[T1:ExGetOnAirShip] z: " + _z);
// PacketLogger.info("[T1:ExGetOnAirShip] ship ID: " + _shipId);
}
}

View File

@@ -19,10 +19,10 @@ package org.l2jmobius.gameserver.network.clientpackets;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Arrays;
import java.util.logging.Level;
import org.l2jmobius.commons.network.PacketReader;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
/**
* Format: c dddd
@@ -79,7 +79,7 @@ public class GameGuardReply implements IClientIncomingPacket
}
catch (NoSuchAlgorithmException e)
{
LOGGER.log(Level.WARNING, "", e);
PacketLogger.warning(getClass().getSimpleName() + ": " + e.getMessage());
}
}
}

View File

@@ -16,8 +16,6 @@
*/
package org.l2jmobius.gameserver.network.clientpackets;
import java.util.logging.Logger;
import org.l2jmobius.commons.network.IIncomingPacket;
import org.l2jmobius.gameserver.network.GameClient;
@@ -27,5 +25,4 @@ import org.l2jmobius.gameserver.network.GameClient;
*/
public interface IClientIncomingPacket extends IIncomingPacket<GameClient>
{
Logger LOGGER = Logger.getLogger(IClientIncomingPacket.class.getName());
}

View File

@@ -32,6 +32,7 @@ import org.l2jmobius.gameserver.model.multisell.Entry;
import org.l2jmobius.gameserver.model.multisell.Ingredient;
import org.l2jmobius.gameserver.model.multisell.PreparedListContainer;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.SystemMessageId;
import org.l2jmobius.gameserver.network.serverpackets.ItemList;
import org.l2jmobius.gameserver.network.serverpackets.StatusUpdate;
@@ -143,7 +144,7 @@ public class MultiSellChoose implements IClientIncomingPacket
{
if (!entry.isStackable() && (_amount > 1))
{
LOGGER.severe("Character: " + player.getName() + " is trying to set amount > 1 on non-stackable multisell, id:" + _listId + ":" + _entryId);
PacketLogger.warning("Character: " + player.getName() + " is trying to set amount > 1 on non-stackable multisell, id:" + _listId + ":" + _entryId);
player.setMultiSell(null);
return;
}
@@ -265,7 +266,7 @@ public class MultiSellChoose implements IClientIncomingPacket
Item itemToTake = inv.getItemByItemId(e.getItemId()); // initialize and initial guess for the item to take.
if (itemToTake == null)
{ // this is a cheat, transaction will be aborted and if any items already taken will not be returned back to inventory!
LOGGER.severe("Character: " + player.getName() + " is trying to cheat in multisell, id:" + _listId + ":" + _entryId);
PacketLogger.warning("Character: " + player.getName() + " is trying to cheat in multisell, id:" + _listId + ":" + _entryId);
player.setMultiSell(null);
return;
}

View File

@@ -43,6 +43,7 @@ import org.l2jmobius.gameserver.model.quest.QuestState;
import org.l2jmobius.gameserver.model.skill.CommonSkill;
import org.l2jmobius.gameserver.model.skill.Skill;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.SystemMessageId;
import org.l2jmobius.gameserver.network.serverpackets.AcquireSkillDone;
import org.l2jmobius.gameserver.network.serverpackets.AcquireSkillList;
@@ -96,7 +97,7 @@ public class RequestAcquireSkill implements IClientIncomingPacket
if ((_level < 1) || (_level > 1000) || (_id < 1) || (_id > 32000))
{
Util.handleIllegalPlayerAction(player, "Wrong Packet Data in Aquired Skill", Config.DEFAULT_PUNISH);
LOGGER.warning("Recived Wrong Packet Data in Aquired Skill - id: " + _id + " level: " + _level + " for " + player);
PacketLogger.warning("Recived Wrong Packet Data in Aquired Skill - id: " + _id + " level: " + _level + " for " + player);
return;
}
@@ -109,7 +110,7 @@ public class RequestAcquireSkill implements IClientIncomingPacket
final Skill skill = SkillData.getInstance().getSkill(_id, _level);
if (skill == null)
{
LOGGER.warning(RequestAcquireSkill.class.getSimpleName() + ": Player " + player.getName() + " is trying to learn a null skill Id: " + _id + " level: " + _level + "!");
PacketLogger.warning(RequestAcquireSkill.class.getSimpleName() + ": Player " + player.getName() + " is trying to learn a null skill Id: " + _id + " level: " + _level + "!");
return;
}
@@ -312,7 +313,7 @@ public class RequestAcquireSkill implements IClientIncomingPacket
}
else
{
LOGGER.warning("Null SubClassSkills quest, for Sub-Class skill Id: " + _id + " level: " + _level + " for player " + player.getName() + "!");
PacketLogger.warning("Null SubClassSkills quest, for Sub-Class skill Id: " + _id + " level: " + _level + " for player " + player.getName() + "!");
return;
}
}
@@ -346,12 +347,12 @@ public class RequestAcquireSkill implements IClientIncomingPacket
}
else
{
LOGGER.warning("Inexistent item for object Id " + itemObjId + ", for Sub-Class skill Id: " + _id + " level: " + _level + " for player " + player.getName() + "!");
PacketLogger.warning("Inexistent item for object Id " + itemObjId + ", for Sub-Class skill Id: " + _id + " level: " + _level + " for player " + player.getName() + "!");
}
}
else
{
LOGGER.warning("Invalid item object Id " + itemOID + ", for Sub-Class skill Id: " + _id + " level: " + _level + " for player " + player.getName() + "!");
PacketLogger.warning("Invalid item object Id " + itemOID + ", for Sub-Class skill Id: " + _id + " level: " + _level + " for player " + player.getName() + "!");
}
}
}
@@ -372,7 +373,7 @@ public class RequestAcquireSkill implements IClientIncomingPacket
}
default:
{
LOGGER.warning("Recived Wrong Packet Data in Aquired Skill, unknown skill type:" + _skillType);
PacketLogger.warning("Recived Wrong Packet Data in Aquired Skill, unknown skill type:" + _skillType);
break;
}
}

View File

@@ -26,6 +26,7 @@ import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.model.clan.ClanPrivilege;
import org.l2jmobius.gameserver.model.skill.Skill;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.serverpackets.AcquireSkillInfo;
/**
@@ -52,7 +53,7 @@ public class RequestAcquireSkillInfo implements IClientIncomingPacket
{
if ((_id <= 0) || (_level <= 0))
{
LOGGER.warning(RequestAcquireSkillInfo.class.getSimpleName() + ": Invalid Id: " + _id + " or level: " + _level + "!");
PacketLogger.warning(RequestAcquireSkillInfo.class.getSimpleName() + ": Invalid Id: " + _id + " or level: " + _level + "!");
return;
}
@@ -71,7 +72,7 @@ public class RequestAcquireSkillInfo implements IClientIncomingPacket
final Skill skill = SkillData.getInstance().getSkill(_id, _level);
if (skill == null)
{
LOGGER.warning(RequestAcquireSkillInfo.class.getSimpleName() + ": Skill Id: " + _id + " level: " + _level + " is undefined. " + RequestAcquireSkillInfo.class.getName() + " failed.");
PacketLogger.warning(RequestAcquireSkillInfo.class.getSimpleName() + ": Skill Id: " + _id + " level: " + _level + " is undefined. " + RequestAcquireSkillInfo.class.getName() + " failed.");
return;
}

View File

@@ -48,6 +48,7 @@ import org.l2jmobius.gameserver.model.skill.BuffInfo;
import org.l2jmobius.gameserver.model.skill.Skill;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.NpcStringId;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.SystemMessageId;
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
import org.l2jmobius.gameserver.network.serverpackets.ChairSit;
@@ -125,7 +126,7 @@ public class RequestActionUse implements IClientIncomingPacket
if (Arrays.binarySearch(allowedActions, _actionId) < 0)
{
client.sendPacket(ActionFailed.STATIC_PACKET);
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().getId());
PacketLogger.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().getId());
return;
}
}

View File

@@ -18,12 +18,12 @@ package org.l2jmobius.gameserver.network.clientpackets;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.util.logging.Level;
import org.l2jmobius.commons.database.DatabaseFactory;
import org.l2jmobius.commons.network.PacketReader;
import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.SystemMessageId;
import org.l2jmobius.gameserver.network.serverpackets.FriendPacket;
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
@@ -92,7 +92,7 @@ public class RequestAnswerFriendInvite implements IClientIncomingPacket
}
catch (Exception e)
{
LOGGER.log(Level.WARNING, "Could not add friend objectid: " + e.getMessage(), e);
PacketLogger.warning("Could not add friend objectid: " + e.getMessage());
}
}
else

View File

@@ -21,6 +21,7 @@ import org.l2jmobius.gameserver.data.sql.CharNameTable;
import org.l2jmobius.gameserver.model.BlockList;
import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.SystemMessageId;
public class RequestBlock implements IClientIncomingPacket
@@ -107,7 +108,7 @@ public class RequestBlock implements IClientIncomingPacket
}
default:
{
LOGGER.info("Unknown 0xA9 block type: " + _type);
PacketLogger.info("Unknown 0xA9 block type: " + _type);
}
}
}

View File

@@ -18,7 +18,6 @@ package org.l2jmobius.gameserver.network.clientpackets;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.util.logging.Level;
import org.l2jmobius.Config;
import org.l2jmobius.commons.database.DatabaseFactory;
@@ -29,6 +28,7 @@ import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.model.holders.PrimeShopProductHolder;
import org.l2jmobius.gameserver.model.item.ItemTemplate;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.serverpackets.ExBrBuyProduct;
import org.l2jmobius.gameserver.network.serverpackets.ExBrGamePoint;
import org.l2jmobius.gameserver.network.serverpackets.StatusUpdate;
@@ -132,7 +132,7 @@ public class RequestBrBuyProduct implements IClientIncomingPacket
}
catch (Exception e)
{
LOGGER.log(Level.SEVERE, "Could not save Item Mall transaction: " + e.getMessage(), e);
PacketLogger.warning("Could not save Item Mall transaction: " + e.getMessage());
}
}
}

View File

@@ -33,6 +33,7 @@ import org.l2jmobius.gameserver.model.buylist.BuyListHolder;
import org.l2jmobius.gameserver.model.buylist.Product;
import org.l2jmobius.gameserver.model.holders.ItemHolder;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.SystemMessageId;
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
import org.l2jmobius.gameserver.network.serverpackets.ExBuySellList;
@@ -178,7 +179,7 @@ public class RequestBuyItem implements IClientIncomingPacket
if (price < 0)
{
LOGGER.warning("ERROR, no price found .. wrong buylist ??");
PacketLogger.warning("ERROR, no price found .. wrong buylist ??");
client.sendPacket(ActionFailed.STATIC_PACKET);
return;
}

View File

@@ -17,7 +17,6 @@
package org.l2jmobius.gameserver.network.clientpackets;
import java.util.StringTokenizer;
import java.util.logging.Level;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketReader;
@@ -39,6 +38,7 @@ import org.l2jmobius.gameserver.model.olympiad.Hero;
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
import org.l2jmobius.gameserver.network.Disconnection;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
import org.l2jmobius.gameserver.network.serverpackets.LeaveWorld;
import org.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
@@ -84,7 +84,7 @@ public class RequestBypassToServer implements IClientIncomingPacket
if (_command.isEmpty())
{
LOGGER.warning("Player " + player.getName() + " sent empty bypass!");
PacketLogger.warning("Player " + player.getName() + " sent empty bypass!");
Disconnection.of(client, player).defaultSequence(LeaveWorld.STATIC_PACKET);
return;
}
@@ -181,7 +181,7 @@ public class RequestBypassToServer implements IClientIncomingPacket
}
catch (NumberFormatException nfe)
{
LOGGER.log(Level.WARNING, "NFE for command [" + _command + "]", nfe);
PacketLogger.warning("NFE for command [" + _command + "] " + nfe.getMessage());
}
}
else if (_command.startsWith("_match"))
@@ -248,13 +248,13 @@ public class RequestBypassToServer implements IClientIncomingPacket
}
else
{
LOGGER.warning(client + " sent not handled RequestBypassToServer: [" + _command + "]");
PacketLogger.warning(client + " sent not handled RequestBypassToServer: [" + _command + "]");
}
}
}
catch (Exception e)
{
LOGGER.log(Level.WARNING, "Exception processing bypass from player " + player.getName() + ": " + _command, e);
PacketLogger.warning("Exception processing bypass from player " + player.getName() + ": " + _command + " " + e.getMessage());
if (player.isGM())
{
final StringBuilder sb = new StringBuilder(200);

View File

@@ -27,6 +27,7 @@ import org.l2jmobius.gameserver.model.item.type.CrystalType;
import org.l2jmobius.gameserver.model.itemcontainer.PlayerInventory;
import org.l2jmobius.gameserver.model.skill.CommonSkill;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.SystemMessageId;
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
@@ -55,7 +56,7 @@ public class RequestCrystallizeItem implements IClientIncomingPacket
final Player player = client.getPlayer();
if (player == null)
{
LOGGER.fine("RequestCrystalizeItem: activeChar was null");
// PacketLogger.finer("RequestCrystalizeItem: activeChar was null");
return;
}
@@ -84,7 +85,7 @@ public class RequestCrystallizeItem implements IClientIncomingPacket
player.sendPacket(ActionFailed.STATIC_PACKET);
if ((player.getRace() != Race.DWARF) && (player.getClassId().getId() != 117) && (player.getClassId().getId() != 55))
{
LOGGER.info("Player " + client + " used crystalize with classid: " + player.getClassId().getId());
PacketLogger.info("Player " + client + " used crystalize with classid: " + player.getClassId().getId());
}
return;
}
@@ -113,7 +114,7 @@ public class RequestCrystallizeItem implements IClientIncomingPacket
if (!itemToRemove.getItem().isCrystallizable() || (itemToRemove.getItem().getCrystalCount() <= 0) || (itemToRemove.getItem().getCrystalType() == CrystalType.NONE))
{
LOGGER.warning(player.getName() + " (" + player.getObjectId() + ") tried to crystallize " + itemToRemove.getItem().getId());
PacketLogger.warning(player.getName() + " (" + player.getObjectId() + ") tried to crystallize " + itemToRemove.getItem().getId());
return;
}

View File

@@ -18,7 +18,6 @@ package org.l2jmobius.gameserver.network.clientpackets;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.util.logging.Level;
import org.l2jmobius.Config;
import org.l2jmobius.commons.database.DatabaseFactory;
@@ -29,6 +28,7 @@ import org.l2jmobius.gameserver.model.PlayerCondOverride;
import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.model.item.instance.Item;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.SystemMessageId;
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
import org.l2jmobius.gameserver.network.serverpackets.ItemList;
@@ -151,7 +151,7 @@ public class RequestDestroyItem implements IClientIncomingPacket
}
catch (Exception e)
{
LOGGER.log(Level.WARNING, "could not delete pet objectid: ", e);
PacketLogger.warning("Could not delete pet objectid: " + e.getMessage());
}
}
if (itemToRemove.isTimeLimitedItem())

View File

@@ -30,6 +30,7 @@ import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
import org.l2jmobius.gameserver.model.skill.Skill;
import org.l2jmobius.gameserver.model.zone.ZoneId;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.SystemMessageId;
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
import org.l2jmobius.gameserver.network.serverpackets.ItemList;
@@ -225,7 +226,7 @@ public class RequestDropItem implements IClientIncomingPacket
if ((dropedItem != null) && (dropedItem.getId() == Inventory.ADENA_ID) && (dropedItem.getCount() >= 1000000))
{
final String msg = "Character (" + player.getName() + ") has dropped (" + dropedItem.getCount() + ")adena at (" + _x + "," + _y + "," + _z + ")";
LOGGER.warning(msg);
PacketLogger.warning(msg);
AdminData.getInstance().broadcastMessageToGMs(msg);
}
}

View File

@@ -18,6 +18,7 @@ package org.l2jmobius.gameserver.network.clientpackets;
import org.l2jmobius.commons.network.PacketReader;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.serverpackets.ExNeedToChangeName;
/**
@@ -42,6 +43,6 @@ public class RequestExChangeName implements IClientIncomingPacket
@Override
public void run(GameClient client)
{
LOGGER.info("Recieved [C]RequestExChangeName name: " + _newName + " type: " + _type + " CharSlot: " + _charSlot);
PacketLogger.info("Recieved [C]RequestExChangeName name: " + _newName + " type: " + _type + " CharSlot: " + _charSlot);
}
}

View File

@@ -20,6 +20,7 @@ import org.l2jmobius.commons.network.PacketReader;
import org.l2jmobius.gameserver.instancemanager.HandysBlockCheckerManager;
import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
/**
* Format: chdd d: Arena d: Team
@@ -74,7 +75,7 @@ public class RequestExCubeGameChangeTeam implements IClientIncomingPacket
}
default:
{
LOGGER.warning("Wrong Cube Game Team ID: " + _team);
PacketLogger.warning("Wrong Cube Game Team ID: " + _team);
break;
}
}

View File

@@ -20,6 +20,7 @@ import org.l2jmobius.commons.network.PacketReader;
import org.l2jmobius.gameserver.instancemanager.HandysBlockCheckerManager;
import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
/**
* Format: chddd d: Arena d: Answer
@@ -64,7 +65,7 @@ public class RequestExCubeGameReadyAnswer implements IClientIncomingPacket
}
default:
{
LOGGER.warning("Unknown Cube Game Answer ID: " + _answer);
PacketLogger.warning("Unknown Cube Game Answer ID: " + _answer);
break;
}
}

View File

@@ -22,6 +22,7 @@ import org.l2jmobius.gameserver.model.Location;
import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.model.skill.Skill;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
import org.l2jmobius.gameserver.network.serverpackets.ValidateLocation;
import org.l2jmobius.gameserver.util.Broadcast;
@@ -86,7 +87,7 @@ public class RequestExMagicSkillUseGround implements IClientIncomingPacket
else
{
player.sendPacket(ActionFailed.STATIC_PACKET);
LOGGER.warning("No skill found with id " + _skillId + " and level " + level + " !!");
PacketLogger.warning("No skill found with id " + _skillId + " and level " + level + " !!");
}
}
}

View File

@@ -16,8 +16,6 @@
*/
package org.l2jmobius.gameserver.network.clientpackets;
import java.util.logging.Level;
import org.l2jmobius.commons.network.PacketReader;
import org.l2jmobius.commons.util.Chronos;
import org.l2jmobius.gameserver.data.xml.EnchantItemData;
@@ -25,6 +23,7 @@ import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.model.item.enchant.EnchantScroll;
import org.l2jmobius.gameserver.model.item.instance.Item;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.SystemMessageId;
import org.l2jmobius.gameserver.network.serverpackets.ExPutEnchantTargetItemResult;
@@ -71,7 +70,7 @@ public class RequestExTryToPutEnchantTargetItem implements IClientIncomingPacket
player.sendPacket(new ExPutEnchantTargetItemResult(0));
if (scrollTemplate == null)
{
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Undefined scroll have been used id: " + scroll.getId());
PacketLogger.warning(getClass().getSimpleName() + ": Undefined scroll have been used id: " + scroll.getId());
}
return;
}

View File

@@ -20,6 +20,7 @@ import org.l2jmobius.commons.network.PacketReader;
import org.l2jmobius.gameserver.instancemanager.FortManager;
import org.l2jmobius.gameserver.model.siege.Fort;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
import org.l2jmobius.gameserver.network.serverpackets.ExShowFortressMapInfo;
@@ -43,7 +44,7 @@ public class RequestFortressMapInfo implements IClientIncomingPacket
final Fort fort = FortManager.getInstance().getFortById(_fortressId);
if (fort == null)
{
LOGGER.warning("Fort is not found with id (" + _fortressId + ") in all forts with size of (" + FortManager.getInstance().getForts().size() + ") called by player (" + client.getPlayer() + ")");
PacketLogger.warning("Fort is not found with id (" + _fortressId + ") in all forts with size of (" + FortManager.getInstance().getForts().size() + ") called by player (" + client.getPlayer() + ")");
if (client.getPlayer() == null)
{
return;

View File

@@ -18,7 +18,6 @@ package org.l2jmobius.gameserver.network.clientpackets;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.util.logging.Level;
import org.l2jmobius.commons.database.DatabaseFactory;
import org.l2jmobius.commons.network.PacketReader;
@@ -26,6 +25,7 @@ import org.l2jmobius.gameserver.data.sql.CharNameTable;
import org.l2jmobius.gameserver.model.World;
import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.SystemMessageId;
import org.l2jmobius.gameserver.network.serverpackets.FriendPacket;
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
@@ -98,7 +98,7 @@ public class RequestFriendDel implements IClientIncomingPacket
}
catch (Exception e)
{
LOGGER.log(Level.WARNING, "could not del friend objectid: ", e);
PacketLogger.warning(getClass().getSimpleName() + ": Could not delele friend objectId: " + e.getMessage());
}
}
}

View File

@@ -22,6 +22,7 @@ import org.l2jmobius.commons.network.PacketReader;
import org.l2jmobius.gameserver.instancemanager.RaidBossPointsManager;
import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.serverpackets.ExGetBossRecord;
/**
@@ -50,7 +51,7 @@ public class RequestGetBossRecord implements IClientIncomingPacket
if (_bossId != 0)
{
LOGGER.info("C5: RequestGetBossRecord: d: " + _bossId + " ActiveChar: " + player); // should be always 0, log it if isnt 0 for furture research
PacketLogger.info("C5: RequestGetBossRecord: d: " + _bossId + " ActiveChar: " + player); // should be always 0, log it if isnt 0 for furture research
}
final int points = RaidBossPointsManager.getInstance().getPointsByOwnerId(player.getObjectId());

View File

@@ -22,6 +22,7 @@ import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.model.actor.instance.Pet;
import org.l2jmobius.gameserver.model.item.instance.Item;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.util.Util;
/**
@@ -78,7 +79,7 @@ public class RequestGetItemFromPet implements IClientIncomingPacket
if (pet.transferItem("Transfer", _objectId, _amount, player.getInventory(), player, pet) == null)
{
LOGGER.warning("Invalid item transfer request: " + pet.getName() + "(pet) --> " + player.getName());
PacketLogger.warning("Invalid item transfer request: " + pet.getName() + "(pet) --> " + player.getName());
}
}
}

View File

@@ -23,6 +23,7 @@ import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.model.actor.instance.Pet;
import org.l2jmobius.gameserver.model.item.instance.Item;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.SystemMessageId;
import org.l2jmobius.gameserver.util.Util;
@@ -117,7 +118,7 @@ public class RequestGiveItemToPet implements IClientIncomingPacket
if (player.transferItem("Transfer", _objectId, _amount, pet.getInventory(), pet) == null)
{
LOGGER.warning("Invalid item transfer request: " + pet.getName() + "(pet) --> " + player.getName());
PacketLogger.warning("Invalid item transfer request: " + pet.getName() + "(pet) --> " + player.getName());
}
}
}

View File

@@ -23,6 +23,7 @@ import org.l2jmobius.gameserver.model.PlayerCondOverride;
import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.model.item.Henna;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.SystemMessageId;
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
import org.l2jmobius.gameserver.util.Util;
@@ -65,7 +66,7 @@ public class RequestHennaEquip implements IClientIncomingPacket
final Henna henna = HennaData.getInstance().getHenna(_symbolId);
if (henna == null)
{
LOGGER.warning(getClass().getName() + ": Invalid Henna Id: " + _symbolId + " from player " + player);
PacketLogger.warning(getClass().getName() + ": Invalid Henna Id: " + _symbolId + " from player " + player);
client.sendActionFailed();
return;
}

View File

@@ -21,6 +21,7 @@ import org.l2jmobius.gameserver.data.xml.HennaData;
import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.model.item.Henna;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.serverpackets.HennaItemDrawInfo;
/**
@@ -51,7 +52,7 @@ public class RequestHennaItemInfo implements IClientIncomingPacket
{
if (_symbolId != 0)
{
LOGGER.warning(getClass().getSimpleName() + ": Invalid Henna Id: " + _symbolId + " from player " + player);
PacketLogger.warning(getClass().getSimpleName() + ": Invalid Henna Id: " + _symbolId + " from player " + player);
}
client.sendActionFailed();
return;

View File

@@ -21,6 +21,7 @@ import org.l2jmobius.gameserver.data.xml.HennaData;
import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.model.item.Henna;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.serverpackets.HennaItemRemoveInfo;
/**
@@ -49,7 +50,7 @@ public class RequestHennaItemRemoveInfo implements IClientIncomingPacket
final Henna henna = HennaData.getInstance().getHenna(_symbolId);
if (henna == null)
{
LOGGER.warning(getClass().getName() + ": Invalid Henna Id: " + _symbolId + " from player " + player);
PacketLogger.warning(getClass().getName() + ": Invalid Henna Id: " + _symbolId + " from player " + player);
client.sendActionFailed();
return;
}

View File

@@ -20,6 +20,7 @@ import org.l2jmobius.commons.network.PacketReader;
import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.model.item.Henna;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.SystemMessageId;
/**
@@ -74,7 +75,7 @@ public class RequestHennaRemove implements IClientIncomingPacket
// TODO: Test.
if (!found)
{
LOGGER.warning(getClass().getSimpleName() + ": Player " + player + " requested Henna Draw remove without any henna.");
PacketLogger.warning(getClass().getSimpleName() + ": Player " + player + " requested Henna Draw remove without any henna.");
client.sendActionFailed();
}
}

View File

@@ -21,6 +21,7 @@ import org.l2jmobius.commons.network.PacketReader;
import org.l2jmobius.gameserver.model.actor.Npc;
import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
import org.l2jmobius.gameserver.util.Util;
@@ -50,20 +51,20 @@ public class RequestLinkHtml implements IClientIncomingPacket
if (_link.isEmpty())
{
LOGGER.warning("Player " + actor.getName() + " sent empty html link!");
PacketLogger.warning("Player " + actor.getName() + " sent empty html link!");
return;
}
if (_link.contains(".."))
{
LOGGER.warning("Player " + actor.getName() + " sent invalid html link: link " + _link);
PacketLogger.warning("Player " + actor.getName() + " sent invalid html link: link " + _link);
return;
}
final int htmlObjectId = actor.validateHtmlAction("link " + _link);
if (htmlObjectId == -1)
{
LOGGER.warning("Player " + actor.getName() + " sent non cached html link: link " + _link);
PacketLogger.warning("Player " + actor.getName() + " sent non cached html link: link " + _link);
return;
}

View File

@@ -26,6 +26,7 @@ import org.l2jmobius.gameserver.model.clan.Clan;
import org.l2jmobius.gameserver.model.clan.ClanMember;
import org.l2jmobius.gameserver.model.clan.ClanPrivilege;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.SystemMessageId;
import org.l2jmobius.gameserver.network.serverpackets.PledgeShowMemberListDelete;
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
@@ -72,7 +73,7 @@ public class RequestOustPledgeMember implements IClientIncomingPacket
final ClanMember member = clan.getClanMember(_target);
if (member == null)
{
LOGGER.warning("Target (" + _target + ") is not member of the clan");
PacketLogger.warning("Target (" + _target + ") is not member of the clan");
return;
}
if (member.isOnline() && member.getPlayer().isInCombat())

View File

@@ -18,6 +18,7 @@ package org.l2jmobius.gameserver.network.clientpackets;
import org.l2jmobius.commons.network.PacketReader;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
/**
* Format: (ch) S
@@ -37,6 +38,6 @@ public class RequestPCCafeCouponUse implements IClientIncomingPacket
@Override
public void run(GameClient client)
{
LOGGER.info("C5: RequestPCCafeCouponUse: S: " + _str);
PacketLogger.info("C5: RequestPCCafeCouponUse: S: " + _str);
}
}

View File

@@ -16,8 +16,6 @@
*/
package org.l2jmobius.gameserver.network.clientpackets;
import java.util.logging.Level;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketReader;
import org.l2jmobius.gameserver.model.World;
@@ -29,6 +27,7 @@ import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
import org.l2jmobius.gameserver.model.itemcontainer.ItemContainer;
import org.l2jmobius.gameserver.model.itemcontainer.PlayerFreight;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.SystemMessageId;
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
import org.l2jmobius.gameserver.network.serverpackets.ItemList;
@@ -124,7 +123,7 @@ public class RequestPackageSend implements IClientIncomingPacket
final Item item = player.checkItemManipulation(i.getId(), i.getCount(), "freight");
if (item == null)
{
LOGGER.log(Level.WARNING, "Error depositing a warehouse object for char " + player.getName() + " (validity check)");
PacketLogger.warning("Error depositing a warehouse object for char " + player.getName() + " (validity check)");
warehouse.deleteMe();
return;
}
@@ -173,7 +172,7 @@ public class RequestPackageSend implements IClientIncomingPacket
final Item oldItem = player.checkItemManipulation(i.getId(), i.getCount(), "deposit");
if (oldItem == null)
{
LOGGER.log(Level.WARNING, "Error depositing a warehouse object for char " + player.getName() + " (olditem == null)");
PacketLogger.warning("Error depositing a warehouse object for char " + player.getName() + " (olditem == null)");
warehouse.deleteMe();
return;
}
@@ -181,7 +180,7 @@ public class RequestPackageSend implements IClientIncomingPacket
final Item newItem = player.getInventory().transferItem("Trade", i.getId(), i.getCount(), warehouse, player, null);
if (newItem == null)
{
LOGGER.log(Level.WARNING, "Error depositing a warehouse object for char " + player.getName() + " (newitem == null)");
PacketLogger.warning("Error depositing a warehouse object for char " + player.getName() + " (newitem == null)");
continue;
}

View File

@@ -64,7 +64,7 @@ public class RequestPartyMatchList implements IClientIncomingPacket
final PartyMatchRoom room = PartyMatchRoomList.getInstance().getRoom(_roomid);
if (room != null)
{
LOGGER.info("PartyMatchRoom #" + room.getId() + " changed by " + player.getName());
// PacketLogger.info("PartyMatchRoom #" + room.getId() + " changed by " + player.getName());
room.setMaxMembers(_membersmax);
room.setMinLevel(_minLevel);
room.setMaxLevel(_maxLevel);
@@ -88,7 +88,7 @@ public class RequestPartyMatchList implements IClientIncomingPacket
final int maxid = PartyMatchRoomList.getInstance().getMaxId();
final PartyMatchRoom room = new PartyMatchRoom(maxid, _roomtitle, _loot, _minLevel, _maxLevel, _membersmax, player);
LOGGER.info("PartyMatchRoom #" + maxid + " created by " + player.getName());
// PacketLogger.info("PartyMatchRoom #" + maxid + " created by " + player.getName());
// Remove from waiting list
PartyMatchWaitingList.getInstance().removePlayer(player);

View File

@@ -23,6 +23,7 @@ import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.model.actor.instance.Pet;
import org.l2jmobius.gameserver.model.item.instance.Item;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.SystemMessageId;
import org.l2jmobius.gameserver.network.serverpackets.PetItemList;
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
@@ -136,7 +137,7 @@ public class RequestPetUseItem implements IClientIncomingPacket
else
{
player.sendPacket(SystemMessageId.THIS_PET_CANNOT_USE_THIS_ITEM);
LOGGER.warning("No item handler registered for itemId: " + item.getId());
PacketLogger.warning("No item handler registered for itemId: " + item.getId());
}
}
}

View File

@@ -19,13 +19,13 @@ package org.l2jmobius.gameserver.network.clientpackets;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.logging.Level;
import org.l2jmobius.commons.database.DatabaseFactory;
import org.l2jmobius.commons.network.PacketReader;
import org.l2jmobius.commons.util.Chronos;
import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
/**
* @author Plim
@@ -74,7 +74,7 @@ public class RequestPetitionFeedback implements IClientIncomingPacket
}
catch (SQLException e)
{
LOGGER.log(Level.SEVERE, "Error while saving petition feedback");
PacketLogger.warning(getClass().getSimpleName() + ": Error while saving petition feedback: " + e.getMessage());
}
}
}

View File

@@ -44,8 +44,8 @@ public class RequestPledgeMemberInfo implements IClientIncomingPacket
@Override
public void run(GameClient client)
{
// LOGGER.info("C5: RequestPledgeMemberInfo d:"+_unk1);
// LOGGER.info("C5: RequestPledgeMemberInfo S:"+_player);
// PacketLogger.info("C5: RequestPledgeMemberInfo d:"+_unk1);
// PacketLogger.info("C5: RequestPledgeMemberInfo S:"+_player);
final Player player = client.getPlayer();
if (player == null)
{

View File

@@ -18,7 +18,6 @@ package org.l2jmobius.gameserver.network.clientpackets;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Level;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketReader;
@@ -37,6 +36,7 @@ import org.l2jmobius.gameserver.model.item.type.ArmorType;
import org.l2jmobius.gameserver.model.item.type.WeaponType;
import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.SystemMessageId;
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
import org.l2jmobius.gameserver.network.serverpackets.ShopPreviewInfo;
@@ -73,7 +73,7 @@ public class RequestPreviewItem implements IClientIncomingPacket
}
catch (Exception e)
{
LOGGER.log(Level.SEVERE, "", e);
PacketLogger.warning(getClass().getSimpleName() + ": " + e.getMessage());
}
}
}
@@ -151,7 +151,7 @@ public class RequestPreviewItem implements IClientIncomingPacket
final Merchant merchant = (target instanceof Merchant) ? (Merchant) target : null;
if (merchant == null)
{
LOGGER.warning(getClass().getName() + " Null merchant!");
PacketLogger.warning(getClass().getName() + ": Null merchant!");
return;
}

View File

@@ -31,6 +31,7 @@ import org.l2jmobius.gameserver.model.World;
import org.l2jmobius.gameserver.model.WorldObject;
import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
import org.l2jmobius.gameserver.util.Util;
@@ -141,7 +142,7 @@ public class RequestPrivateStoreBuy implements IClientIncomingPacket
client.sendPacket(ActionFailed.STATIC_PACKET);
if (result > 1)
{
LOGGER.warning("PrivateStore buy has failed due to invalid list or request. Player: " + player.getName() + ", Private store of: " + storePlayer.getName());
PacketLogger.warning("PrivateStore buy has failed due to invalid list or request. Player: " + player.getName() + ", Private store of: " + storePlayer.getName());
}
return;
}

View File

@@ -27,6 +27,7 @@ import org.l2jmobius.gameserver.model.TradeList;
import org.l2jmobius.gameserver.model.World;
import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
/**
@@ -131,7 +132,7 @@ public class RequestPrivateStoreSell implements IClientIncomingPacket
if (!storeList.privateStoreSell(player, _items))
{
client.sendPacket(ActionFailed.STATIC_PACKET);
LOGGER.warning("PrivateStore sell has failed due to invalid list or request. Player: " + player.getName() + ", Private store of: " + storePlayer.getName());
PacketLogger.warning("PrivateStore sell has failed due to invalid list or request. Player: " + player.getName() + ", Private store of: " + storePlayer.getName());
return;
}

View File

@@ -29,6 +29,7 @@ import org.l2jmobius.gameserver.model.buylist.BuyListHolder;
import org.l2jmobius.gameserver.model.item.ItemTemplate;
import org.l2jmobius.gameserver.model.item.instance.Item;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.SystemMessageId;
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
import org.l2jmobius.gameserver.network.serverpackets.ExBuySellList;
@@ -194,7 +195,7 @@ public class RequestRefundItem implements IClientIncomingPacket
final Item item = player.getRefund().transferItem("Refund", objectIds[i], Long.MAX_VALUE, player.getInventory(), player, player.getLastFolkNPC());
if (item == null)
{
LOGGER.warning("Error refunding object for char " + player.getName() + " (newitem == null)");
PacketLogger.warning("Error refunding object for char " + player.getName() + " (newitem == null)");
}
}

View File

@@ -20,6 +20,7 @@ import org.l2jmobius.commons.network.PacketReader;
import org.l2jmobius.gameserver.data.sql.ClanTable;
import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
public class RequestReplySurrenderPledgeWar implements IClientIncomingPacket
{
@@ -54,7 +55,7 @@ public class RequestReplySurrenderPledgeWar implements IClientIncomingPacket
}
else
{
LOGGER.info(getClass().getSimpleName() + ": Missing implementation for answer: " + _answer + " and name: " + _reqName + "!");
PacketLogger.info(getClass().getSimpleName() + ": Missing implementation for answer: " + _answer + " and name: " + _reqName + "!");
}
player.onTransactionRequest(requestor);
}

View File

@@ -32,6 +32,7 @@ import org.l2jmobius.gameserver.model.sevensigns.SevenSignsFestival;
import org.l2jmobius.gameserver.network.ConnectionState;
import org.l2jmobius.gameserver.network.Disconnection;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.SystemMessageId;
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
import org.l2jmobius.gameserver.network.serverpackets.CharSelectionInfo;
@@ -70,7 +71,7 @@ public class RequestRestart implements IClientIncomingPacket
if (player.isLocked())
{
LOGGER.warning("Player " + player.getName() + " tried to restart during class change.");
PacketLogger.warning("Player " + player.getName() + " tried to restart during class change.");
client.sendPacket(RestartResponse.valueOf(false));
player.sendPacket(ActionFailed.STATIC_PACKET);
return;

View File

@@ -37,6 +37,7 @@ import org.l2jmobius.gameserver.model.siege.Castle;
import org.l2jmobius.gameserver.model.siege.Fort;
import org.l2jmobius.gameserver.model.siege.clanhalls.SiegableHall;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
/**
* @version $Revision: 1.7.2.3.2.6 $ $Date: 2005/03/27 15:29:30 $
@@ -145,7 +146,7 @@ public class RequestRestartPoint implements IClientIncomingPacket
{
if ((player.getClan() == null) || (player.getClan().getHideoutId() == 0))
{
LOGGER.warning("Player [" + player.getName() + "] called RestartPointPacket - To Clanhall and he doesn't have Clanhall!");
PacketLogger.warning("Player [" + player.getName() + "] called RestartPointPacket - To Clanhall and he doesn't have Clanhall!");
return;
}
loc = MapRegionManager.getInstance().getTeleToLocation(player, TeleportWhereType.CLANHALL);
@@ -171,7 +172,7 @@ public class RequestRestartPoint implements IClientIncomingPacket
}
else
{
LOGGER.warning("Player [" + player.getName() + "] called RestartPointPacket - To Castle and he doesn't have Castle!");
PacketLogger.warning("Player [" + player.getName() + "] called RestartPointPacket - To Castle and he doesn't have Castle!");
return;
}
}
@@ -193,7 +194,7 @@ public class RequestRestartPoint implements IClientIncomingPacket
{
if (((player.getClan() == null) || (player.getClan().getFortId() == 0)) && !isInDefense)
{
LOGGER.warning("Player [" + player.getName() + "] called RestartPointPacket - To Fortress and he doesn't have Fortress!");
PacketLogger.warning("Player [" + player.getName() + "] called RestartPointPacket - To Fortress and he doesn't have Fortress!");
return;
}
loc = MapRegionManager.getInstance().getTeleToLocation(player, TeleportWhereType.FORTRESS);
@@ -234,7 +235,7 @@ public class RequestRestartPoint implements IClientIncomingPacket
}
}
LOGGER.warning("Player [" + player.getName() + "] called RestartPointPacket - To Siege HQ and he doesn't have Siege HQ!");
PacketLogger.warning("Player [" + player.getName() + "] called RestartPointPacket - To Siege HQ and he doesn't have Siege HQ!");
return;
}
loc = MapRegionManager.getInstance().getTeleToLocation(player, TeleportWhereType.SIEGEFLAG);
@@ -244,7 +245,7 @@ public class RequestRestartPoint implements IClientIncomingPacket
{
if (!player.isGM() && !player.isFestivalParticipant() && !player.getInventory().haveItemForSelfResurrection())
{
LOGGER.warning("Player [" + player.getName() + "] called RestartPointPacket - Fixed and he isn't festival participant!");
PacketLogger.warning("Player [" + player.getName() + "] called RestartPointPacket - Fixed and he isn't festival participant!");
return;
}
if (player.isGM() || player.destroyItemByItemId("Feather", 10649, 1, player, false) || player.destroyItemByItemId("Feather", 13300, 1, player, false) || player.destroyItemByItemId("Feather", 13128, 1, player, false))

View File

@@ -33,6 +33,7 @@ import org.l2jmobius.gameserver.model.item.instance.Item;
import org.l2jmobius.gameserver.model.itemcontainer.Mail;
import org.l2jmobius.gameserver.model.zone.ZoneId;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.SystemMessageId;
import org.l2jmobius.gameserver.network.serverpackets.ExNoticePostSent;
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
@@ -313,14 +314,14 @@ public class RequestSendPost implements IClientIncomingPacket
final Item oldItem = player.checkItemManipulation(i.getObjectId(), i.getCount(), "attach");
if ((oldItem == null) || !oldItem.isTradeable() || oldItem.isEquipped())
{
LOGGER.warning("Error adding attachment for char " + player.getName() + " (olditem == null)");
PacketLogger.warning("Error adding attachment for char " + player.getName() + " (olditem == null)");
return false;
}
final Item newItem = player.getInventory().transferItem("SendMail", i.getObjectId(), i.getCount(), attachments, player, receiver);
if (newItem == null)
{
LOGGER.warning("Error adding attachment for char " + player.getName() + " (newitem == null)");
PacketLogger.warning("Error adding attachment for char " + player.getName() + " (newitem == null)");
continue;
}
newItem.setItemLocation(newItem.getItemLocation(), msg.getId());

View File

@@ -18,7 +18,6 @@ package org.l2jmobius.gameserver.network.clientpackets;
import java.util.Calendar;
import java.util.Date;
import java.util.logging.Level;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketReader;
@@ -26,6 +25,7 @@ import org.l2jmobius.gameserver.instancemanager.CastleManager;
import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.model.siege.Castle;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.SystemMessageId;
import org.l2jmobius.gameserver.network.serverpackets.SiegeInfo;
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
@@ -55,17 +55,17 @@ public class RequestSetCastleSiegeTime implements IClientIncomingPacket
final Castle castle = CastleManager.getInstance().getCastleById(_castleId);
if ((player == null) || (castle == null))
{
LOGGER.log(Level.WARNING, "[C]RequestSetCastleSiegeTime: activeChar: " + player + " castle: " + castle + " castleId: " + _castleId);
PacketLogger.warning("[C]RequestSetCastleSiegeTime: activeChar: " + player + " castle: " + castle + " castleId: " + _castleId);
return;
}
if ((castle.getOwnerId() > 0) && (castle.getOwnerId() != player.getClanId()))
{
LOGGER.log(Level.WARNING, "[C]RequestSetCastleSiegeTime: activeChar: " + player + " castle: " + castle + " castleId: " + _castleId + " is trying to change siege date of not his own castle!");
PacketLogger.warning("[C]RequestSetCastleSiegeTime: activeChar: " + player + " castle: " + castle + " castleId: " + _castleId + " is trying to change siege date of not his own castle!");
}
else if (!player.isClanLeader())
{
LOGGER.log(Level.WARNING, "[C]RequestSetCastleSiegeTime: activeChar: " + player + " castle: " + castle + " castleId: " + _castleId + " is trying to change siege date but is not clan leader!");
PacketLogger.warning("[C]RequestSetCastleSiegeTime: activeChar: " + player + " castle: " + castle + " castleId: " + _castleId + " is trying to change siege date but is not clan leader!");
}
else if (!castle.isTimeRegistrationOver())
{
@@ -81,12 +81,12 @@ public class RequestSetCastleSiegeTime implements IClientIncomingPacket
}
else
{
LOGGER.log(Level.WARNING, "[C]RequestSetCastleSiegeTime: activeChar: " + player + " castle: " + castle + " castleId: " + _castleId + " is trying to an invalid time (" + new Date(_time) + " !");
PacketLogger.warning("[C]RequestSetCastleSiegeTime: activeChar: " + player + " castle: " + castle + " castleId: " + _castleId + " is trying to an invalid time (" + new Date(_time) + " !");
}
}
else
{
LOGGER.log(Level.WARNING, "[C]RequestSetCastleSiegeTime: activeChar: " + player + " castle: " + castle + " castleId: " + _castleId + " is trying to change siege date but currently not possible!");
PacketLogger.warning("[C]RequestSetCastleSiegeTime: activeChar: " + player + " castle: " + castle + " castleId: " + _castleId + " is trying to change siege date but currently not possible!");
}
}

View File

@@ -21,6 +21,7 @@ import org.l2jmobius.gameserver.data.sql.ClanTable;
import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.model.clan.Clan;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.SystemMessageId;
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
@@ -57,7 +58,7 @@ public class RequestSurrenderPledgeWar implements IClientIncomingPacket
return;
}
LOGGER.info("RequestSurrenderPledgeWar by " + client.getPlayer().getClan().getName() + " with " + _pledgeName);
PacketLogger.info("RequestSurrenderPledgeWar by " + client.getPlayer().getClan().getName() + " with " + _pledgeName);
if (!playerClan.isAtWarWith(clan.getId()))
{
player.sendMessage("You aren't at war with this clan.");

View File

@@ -33,6 +33,7 @@ import org.l2jmobius.gameserver.model.events.returns.ChatFilterReturn;
import org.l2jmobius.gameserver.model.item.instance.Item;
import org.l2jmobius.gameserver.network.Disconnection;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.SystemMessageId;
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
import org.l2jmobius.gameserver.network.serverpackets.LeaveWorld;
@@ -109,7 +110,7 @@ public class Say2 implements IClientIncomingPacket
ChatType chatType = ChatType.findByClientId(_type);
if (chatType == null)
{
LOGGER.warning("Say2: Invalid type: " + _type + " Player : " + player.getName() + " text: " + _text);
PacketLogger.warning("Say2: Invalid type: " + _type + " Player : " + player.getName() + " text: " + _text);
player.sendPacket(ActionFailed.STATIC_PACKET);
Disconnection.of(player).defaultSequence(LeaveWorld.STATIC_PACKET);
return;
@@ -117,7 +118,7 @@ public class Say2 implements IClientIncomingPacket
if (_text.isEmpty())
{
LOGGER.warning(player.getName() + ": sending empty text. Possible packet hack!");
PacketLogger.warning(player.getName() + ": sending empty text. Possible packet hack!");
player.sendPacket(ActionFailed.STATIC_PACKET);
Disconnection.of(player).defaultSequence(LeaveWorld.STATIC_PACKET);
return;
@@ -204,7 +205,7 @@ public class Say2 implements IClientIncomingPacket
}
else
{
LOGGER.info("No handler registered for ChatType: " + _type + " Player: " + client);
PacketLogger.info("No handler registered for ChatType: " + _type + " Player: " + client);
}
}
@@ -252,7 +253,7 @@ public class Say2 implements IClientIncomingPacket
{
if (owner.getInventory().getItemByObjectId(id) == null)
{
LOGGER.info(owner.getClient() + " trying publish item which doesnt own! ID:" + id);
PacketLogger.info(owner.getClient() + " trying publish item which doesnt own! ID:" + id);
return false;
}
((Item) item).publish();
@@ -264,7 +265,7 @@ public class Say2 implements IClientIncomingPacket
pos1 = _text.indexOf(8, pos) + 1;
if (pos1 == 0) // missing ending tag
{
LOGGER.info(owner.getClient() + " sent invalid publish item msg! ID:" + id);
PacketLogger.info(owner.getClient() + " sent invalid publish item msg! ID:" + id);
return false;
}
}

View File

@@ -30,6 +30,7 @@ import org.l2jmobius.gameserver.model.item.instance.Item;
import org.l2jmobius.gameserver.model.itemcontainer.ItemContainer;
import org.l2jmobius.gameserver.model.itemcontainer.PlayerWarehouse;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.SystemMessageId;
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
import org.l2jmobius.gameserver.network.serverpackets.ItemList;
@@ -129,7 +130,7 @@ public class SendWareHouseDepositList implements IClientIncomingPacket
final Item item = player.checkItemManipulation(itemHolder.getId(), itemHolder.getCount(), "deposit");
if (item == null)
{
LOGGER.warning("Error depositing a warehouse object for char " + player.getName() + " (validity check)");
PacketLogger.warning("Error depositing a warehouse object for char " + player.getName() + " (validity check)");
return;
}
@@ -176,7 +177,7 @@ public class SendWareHouseDepositList implements IClientIncomingPacket
final Item oldItem = player.checkItemManipulation(itemHolder.getId(), itemHolder.getCount(), "deposit");
if (oldItem == null)
{
LOGGER.warning("Error depositing a warehouse object for char " + player.getName() + " (olditem == null)");
PacketLogger.warning("Error depositing a warehouse object for char " + player.getName() + " (olditem == null)");
return;
}
@@ -188,7 +189,7 @@ public class SendWareHouseDepositList implements IClientIncomingPacket
final Item newItem = player.getInventory().transferItem(warehouse.getName(), itemHolder.getId(), itemHolder.getCount(), warehouse, player, manager);
if (newItem == null)
{
LOGGER.warning("Error depositing a warehouse object for char " + player.getName() + " (newitem == null)");
PacketLogger.warning("Error depositing a warehouse object for char " + player.getName() + " (newitem == null)");
continue;
}

View File

@@ -27,6 +27,7 @@ import org.l2jmobius.gameserver.model.itemcontainer.ClanWarehouse;
import org.l2jmobius.gameserver.model.itemcontainer.ItemContainer;
import org.l2jmobius.gameserver.model.itemcontainer.PlayerWarehouse;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.SystemMessageId;
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
import org.l2jmobius.gameserver.network.serverpackets.ItemList;
@@ -170,13 +171,13 @@ public class SendWareHouseWithDrawList implements IClientIncomingPacket
final Item oldItem = warehouse.getItemByObjectId(i.getId());
if ((oldItem == null) || (oldItem.getCount() < i.getCount()))
{
LOGGER.warning("Error withdrawing a warehouse object for char " + player.getName() + " (olditem == null)");
PacketLogger.warning("Error withdrawing a warehouse object for char " + player.getName() + " (olditem == null)");
return;
}
final Item newItem = warehouse.transferItem(warehouse.getName(), i.getId(), i.getCount(), player.getInventory(), player, manager);
if (newItem == null)
{
LOGGER.warning("Error withdrawing a warehouse object for char " + player.getName() + " (newitem == null)");
PacketLogger.warning("Error withdrawing a warehouse object for char " + player.getName() + " (newitem == null)");
return;
}

View File

@@ -17,7 +17,6 @@
package org.l2jmobius.gameserver.network.clientpackets;
import java.util.concurrent.TimeUnit;
import java.util.logging.Level;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketReader;
@@ -44,6 +43,7 @@ import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
import org.l2jmobius.gameserver.model.skill.Skill;
import org.l2jmobius.gameserver.model.zone.ZoneId;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.SystemMessageId;
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
import org.l2jmobius.gameserver.network.serverpackets.ExUseSharedGroupItem;
@@ -330,7 +330,7 @@ public class UseItem implements IClientIncomingPacket
{
if ((etcItem != null) && (etcItem.getHandlerName() != null))
{
LOGGER.log(Level.WARNING, "Unmanaged Item handler: " + etcItem.getHandlerName() + " for Item Id: " + _itemId + "!");
PacketLogger.warning("Unmanaged Item handler: " + etcItem.getHandlerName() + " for Item Id: " + _itemId + "!");
}
return;
}

View File

@@ -16,11 +16,10 @@
*/
package org.l2jmobius.gameserver.network.serverpackets;
import java.util.logging.Level;
import org.l2jmobius.gameserver.cache.HtmCache;
import org.l2jmobius.gameserver.enums.HtmlActionScope;
import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.util.Util;
/**
@@ -75,7 +74,7 @@ public abstract class AbstractHtmlPacket implements IClientOutgoingPacket
{
if (html.length() > 17200)
{
LOGGER.log(Level.WARNING, "Html is too long! this will crash the client!", new Throwable());
PacketLogger.warning(getClass().getSimpleName() + ": Html is too long! this will crash the client!");
_html = html.substring(0, 17200);
}
@@ -94,7 +93,7 @@ public abstract class AbstractHtmlPacket implements IClientOutgoingPacket
if (content == null)
{
setHtml("<html><body>My Text is missing:<br>" + path + "</body></html>");
LOGGER.warning("missing html page " + path);
PacketLogger.warning(getClass().getSimpleName() + ": Missing html page " + path);
return false;
}

View File

@@ -21,7 +21,6 @@ import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import org.l2jmobius.commons.database.DatabaseFactory;
import org.l2jmobius.commons.network.PacketWriter;
@@ -29,6 +28,7 @@ import org.l2jmobius.gameserver.data.xml.PrimeShopData;
import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.model.holders.PrimeShopProductHolder;
import org.l2jmobius.gameserver.network.OutgoingPackets;
import org.l2jmobius.gameserver.network.PacketLogger;
/**
* @author Mobius
@@ -59,7 +59,7 @@ public class ExBrRecentProductList implements IClientOutgoingPacket
}
catch (Exception e)
{
LOGGER.log(Level.SEVERE, "Could not restore Item Mall transaction: " + e.getMessage(), e);
PacketLogger.warning("Could not restore Item Mall transaction: " + e.getMessage());
}
}

View File

@@ -23,6 +23,7 @@ import org.l2jmobius.gameserver.model.Message;
import org.l2jmobius.gameserver.model.item.instance.Item;
import org.l2jmobius.gameserver.model.itemcontainer.ItemContainer;
import org.l2jmobius.gameserver.network.OutgoingPackets;
import org.l2jmobius.gameserver.network.PacketLogger;
/**
* @author Migi, DS
@@ -44,7 +45,7 @@ public class ExReplyReceivedPost implements IClientOutgoingPacket
}
else
{
LOGGER.warning("Message " + msg.getId() + " has attachments but itemcontainer is empty.");
PacketLogger.warning("Message " + msg.getId() + " has attachments but itemcontainer is empty.");
}
}
}

View File

@@ -23,6 +23,7 @@ import org.l2jmobius.gameserver.model.Message;
import org.l2jmobius.gameserver.model.item.instance.Item;
import org.l2jmobius.gameserver.model.itemcontainer.ItemContainer;
import org.l2jmobius.gameserver.network.OutgoingPackets;
import org.l2jmobius.gameserver.network.PacketLogger;
/**
* ExReplySentPost packet implementation.
@@ -45,7 +46,7 @@ public class ExReplySentPost implements IClientOutgoingPacket
}
else
{
LOGGER.warning("Message " + msg.getId() + " has attachments but itemcontainer is empty.");
PacketLogger.warning("Message " + msg.getId() + " has attachments but itemcontainer is empty.");
}
}
}

View File

@@ -23,6 +23,7 @@ import org.l2jmobius.gameserver.data.sql.ClanTable;
import org.l2jmobius.gameserver.instancemanager.CastleManager;
import org.l2jmobius.gameserver.model.siege.Castle;
import org.l2jmobius.gameserver.network.OutgoingPackets;
import org.l2jmobius.gameserver.network.PacketLogger;
/**
* @author KenM
@@ -46,7 +47,7 @@ public class ExShowCastleInfo implements IClientOutgoingPacket
}
else
{
LOGGER.warning("Castle owner with no name! Castle: " + castle.getName() + " has an OwnerId = " + castle.getOwnerId() + " who does not have a name!");
PacketLogger.warning("Castle owner with no name! Castle: " + castle.getName() + " has an OwnerId = " + castle.getOwnerId() + " who does not have a name!");
packet.writeS("");
}
}

View File

@@ -16,8 +16,6 @@
*/
package org.l2jmobius.gameserver.network.serverpackets;
import java.util.logging.Logger;
import org.l2jmobius.commons.network.IOutgoingPacket;
import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
@@ -27,8 +25,6 @@ import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
*/
public interface IClientOutgoingPacket extends IOutgoingPacket
{
Logger LOGGER = Logger.getLogger(IClientOutgoingPacket.class.getName());
int[] PAPERDOLL_ORDER = new int[]
{
Inventory.PAPERDOLL_UNDER,

View File

@@ -20,6 +20,7 @@ import org.l2jmobius.commons.network.PacketWriter;
import org.l2jmobius.gameserver.model.clan.Clan;
import org.l2jmobius.gameserver.model.clan.Clan.SubPledge;
import org.l2jmobius.gameserver.network.OutgoingPackets;
import org.l2jmobius.gameserver.network.PacketLogger;
/**
* @author -Wooden-
@@ -60,7 +61,7 @@ public class PledgeReceiveSubPledgeCreated implements IClientOutgoingPacket
}
else if (_clan.getClanMember(LeaderId) == null)
{
LOGGER.warning("SubPledgeLeader: " + LeaderId + " is missing from clan: " + _clan.getName() + "[" + _clan.getId() + "]");
PacketLogger.warning("SubPledgeLeader: " + LeaderId + " is missing from clan: " + _clan.getName() + "[" + _clan.getId() + "]");
return "";
}
else

View File

@@ -21,6 +21,7 @@ import org.l2jmobius.gameserver.data.xml.RecipeData;
import org.l2jmobius.gameserver.model.RecipeList;
import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.network.OutgoingPackets;
import org.l2jmobius.gameserver.network.PacketLogger;
public class RecipeItemMakeInfo implements IClientOutgoingPacket
{
@@ -57,7 +58,7 @@ public class RecipeItemMakeInfo implements IClientOutgoingPacket
}
else
{
LOGGER.info("Character: " + _player + ": Requested unexisting recipe with id = " + _id);
PacketLogger.info("Character: " + _player + ": Requested unexisting recipe with id = " + _id);
}
return true;
}

View File

@@ -28,6 +28,7 @@ import org.l2jmobius.gameserver.model.clan.Clan;
import org.l2jmobius.gameserver.model.residences.ClanHall;
import org.l2jmobius.gameserver.model.siege.Castle;
import org.l2jmobius.gameserver.network.OutgoingPackets;
import org.l2jmobius.gameserver.network.PacketLogger;
/**
* Shows the Siege Info<br>
@@ -86,7 +87,7 @@ public class SiegeInfo implements IClientOutgoingPacket
}
else
{
LOGGER.warning("Null owner for castle: " + _castle.getName());
PacketLogger.warning("Null owner for castle: " + _castle.getName());
}
}
else
@@ -137,7 +138,7 @@ public class SiegeInfo implements IClientOutgoingPacket
}
else
{
LOGGER.warning("Null owner for siegable hall: " + _hall.getName());
PacketLogger.warning("Null owner for siegable hall: " + _hall.getName());
}
}
else

View File

@@ -33,6 +33,7 @@ import org.l2jmobius.gameserver.model.item.type.CrystalType;
import org.l2jmobius.gameserver.model.item.type.EtcItemType;
import org.l2jmobius.gameserver.model.item.type.MaterialType;
import org.l2jmobius.gameserver.network.OutgoingPackets;
import org.l2jmobius.gameserver.network.PacketLogger;
public class SortedWareHouseWithdrawalList implements IClientOutgoingPacket
{
@@ -94,7 +95,7 @@ public class SortedWareHouseWithdrawalList implements IClientOutgoingPacket
if (player.getActiveWarehouse() == null)
{
// Something went wrong!
LOGGER.warning("error while sending withdraw request to: " + player.getName());
PacketLogger.warning("Error while sending withdraw request to: " + player.getName());
return;
}

View File

@@ -17,7 +17,6 @@
package org.l2jmobius.gameserver.network.serverpackets;
import java.util.Arrays;
import java.util.logging.Level;
import org.l2jmobius.commons.network.PacketWriter;
import org.l2jmobius.gameserver.data.ItemTable;
@@ -29,6 +28,7 @@ import org.l2jmobius.gameserver.model.item.ItemTemplate;
import org.l2jmobius.gameserver.model.item.instance.Item;
import org.l2jmobius.gameserver.model.skill.Skill;
import org.l2jmobius.gameserver.network.OutgoingPackets;
import org.l2jmobius.gameserver.network.PacketLogger;
import org.l2jmobius.gameserver.network.SystemMessageId;
import org.l2jmobius.gameserver.network.SystemMessageId.SMLocalisation;
@@ -148,7 +148,7 @@ public class SystemMessage implements IClientOutgoingPacket
{
_params = Arrays.copyOf(_params, _paramIndex + 1);
_smId.setParamCount(_paramIndex + 1);
LOGGER.log(Level.INFO, "Wrong parameter count '" + (_paramIndex + 1) + "' for SystemMessageId: " + _smId);
PacketLogger.info("Wrong parameter count '" + (_paramIndex + 1) + "' for SystemMessageId: " + _smId);
}
_params[_paramIndex++] = param;
@@ -369,7 +369,7 @@ public class SystemMessage implements IClientOutgoingPacket
{
if (param == null)
{
LOGGER.warning("Found null parameter for SystemMessageId " + _smId);
PacketLogger.warning("Found null parameter for SystemMessageId " + _smId);
continue;
}

View File

@@ -22,6 +22,7 @@ import org.l2jmobius.commons.network.PacketWriter;
import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.model.item.instance.Item;
import org.l2jmobius.gameserver.network.OutgoingPackets;
import org.l2jmobius.gameserver.network.PacketLogger;
public class WareHouseWithdrawalList implements IClientOutgoingPacket
{
@@ -45,7 +46,7 @@ public class WareHouseWithdrawalList implements IClientOutgoingPacket
{
if (player.getActiveWarehouse() == null)
{
LOGGER.warning("error while sending withdraw request to: " + player.getName());
PacketLogger.warning("Error while sending withdraw request to: " + player.getName());
return;
}