Removed main server debug config.
This commit is contained in:
@@ -23,7 +23,6 @@ import org.w3c.dom.Document;
|
||||
import org.w3c.dom.NamedNodeMap;
|
||||
import org.w3c.dom.Node;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.commons.util.IGameXmlReader;
|
||||
import com.l2jmobius.gameserver.GameTimeController;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
@@ -42,6 +41,7 @@ public final class HitConditionBonusData implements IGameXmlReader
|
||||
private int highBonus = 0;
|
||||
private int lowBonus = 0;
|
||||
private int darkBonus = 0;
|
||||
@SuppressWarnings("unused")
|
||||
private int rainBonus = 0;
|
||||
|
||||
/**
|
||||
@@ -57,16 +57,6 @@ public final class HitConditionBonusData implements IGameXmlReader
|
||||
{
|
||||
parseDatapackFile("data/stats/hitConditionBonus.xml");
|
||||
LOGGER.info(getClass().getSimpleName() + ": Loaded Hit Condition bonuses.");
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
LOGGER.info(getClass().getSimpleName() + ": Front bonus: " + frontBonus);
|
||||
LOGGER.info(getClass().getSimpleName() + ": Side bonus: " + sideBonus);
|
||||
LOGGER.info(getClass().getSimpleName() + ": Back bonus: " + backBonus);
|
||||
LOGGER.info(getClass().getSimpleName() + ": High bonus: " + highBonus);
|
||||
LOGGER.info(getClass().getSimpleName() + ": Low bonus: " + lowBonus);
|
||||
LOGGER.info(getClass().getSimpleName() + ": Dark bonus: " + darkBonus);
|
||||
LOGGER.info(getClass().getSimpleName() + ": Rain bonus: " + rainBonus);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -914,10 +914,6 @@ public class AugmentationData
|
||||
}
|
||||
stat12 = Rnd.get(offset, (offset + STAT_SUBBLOCKSIZE) - 1);
|
||||
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
LOGGER.info(getClass().getSimpleName() + ": Augmentation success: stat12=" + stat12 + "; stat34=" + stat34 + "; resultColor=" + resultColor + "; level=" + lifeStoneLevel + "; grade=" + lifeStoneGrade);
|
||||
}
|
||||
return new Augmentation(((stat34 << 16) + stat12));
|
||||
}
|
||||
|
||||
@@ -1047,10 +1043,6 @@ public class AugmentationData
|
||||
// stat12 has stats only
|
||||
stat12 = base + skillsLength + (ACC_STAT_SUBBLOCKSIZE * resultColor) + stat12;
|
||||
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
LOGGER.info(getClass().getSimpleName() + ": Accessory augmentation success: stat12=" + stat12 + "; stat34=" + stat34 + "; level=" + lifeStoneLevel);
|
||||
}
|
||||
final int augmentationId = ((stat34 << 16) + stat12);
|
||||
return getAugmentation(augmentationId);
|
||||
}
|
||||
|
@@ -234,11 +234,6 @@ public class ItemTable
|
||||
}
|
||||
}
|
||||
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
LOGGER.finer(getClass().getSimpleName() + ": Item created: " + item);
|
||||
}
|
||||
|
||||
// Add the L2ItemInstance object to _allObjects of L2world
|
||||
L2World.getInstance().storeObject(item);
|
||||
|
||||
|
@@ -108,12 +108,6 @@ public final class CastleManorManager implements IGameXmlReader, IStorable
|
||||
{
|
||||
ThreadPoolManager.scheduleAtFixedRate(this::storeMe, Config.ALT_MANOR_SAVE_PERIOD_RATE * 60 * 60 * 1000, Config.ALT_MANOR_SAVE_PERIOD_RATE * 60 * 60 * 1000);
|
||||
}
|
||||
|
||||
// Send debug message
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
LOGGER.info(getClass().getSimpleName() + ": Current mode " + _mode);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -435,10 +429,6 @@ public final class CastleManorManager implements IGameXmlReader, IStorable
|
||||
}
|
||||
}
|
||||
scheduleModeChange();
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
LOGGER.info(getClass().getSimpleName() + ": Manor mode changed to " + _mode + "!");
|
||||
}
|
||||
}
|
||||
|
||||
public final void setNextSeedProduction(List<SeedProduction> list, int castleId)
|
||||
|
@@ -448,10 +448,6 @@ public final class InstanceManager implements IGameXmlReader
|
||||
{
|
||||
if (_currentInstanceId == Integer.MAX_VALUE)
|
||||
{
|
||||
if (Config.DEBUG_INSTANCES)
|
||||
{
|
||||
LOGGER.info(getClass().getSimpleName() + ": Instance id owerflow, starting from zero.");
|
||||
}
|
||||
_currentInstanceId = 0;
|
||||
}
|
||||
_currentInstanceId++;
|
||||
|
@@ -472,11 +472,6 @@ public class CursedWeapon implements INamable
|
||||
|
||||
public void saveData()
|
||||
{
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.info("CursedWeapon: Saving data to disk.");
|
||||
}
|
||||
|
||||
try (Connection con = DatabaseFactory.getInstance().getConnection();
|
||||
PreparedStatement del = con.prepareStatement("DELETE FROM cursed_weapons WHERE itemId = ?");
|
||||
PreparedStatement ps = con.prepareStatement("INSERT INTO cursed_weapons (itemId, charId, playerReputation, playerPkKills, nbKills, endTime) VALUES (?, ?, ?, ?, ?, ?)"))
|
||||
|
@@ -988,10 +988,6 @@ public class L2Clan implements IIdentifiable, INamable
|
||||
ps.setInt(9, getNewLeaderId());
|
||||
ps.setInt(10, getId());
|
||||
ps.execute();
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.finer("New clan leader saved in db: " + getId());
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@@ -1033,10 +1029,6 @@ public class L2Clan implements IIdentifiable, INamable
|
||||
ps.setInt(12, getAllyCrestId());
|
||||
ps.setInt(13, getNewLeaderId());
|
||||
ps.execute();
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.finer("New clan saved in db: " + getId());
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@@ -1061,10 +1053,6 @@ public class L2Clan implements IIdentifiable, INamable
|
||||
ps1.setLong(3, clanCreateExpiryTime);
|
||||
ps1.setInt(4, member.getObjectId());
|
||||
ps1.execute();
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.finer("clan member removed in db: " + getId());
|
||||
}
|
||||
// Remove apprentice.
|
||||
ps2.setInt(1, member.getObjectId());
|
||||
ps2.execute();
|
||||
@@ -1142,11 +1130,6 @@ public class L2Clan implements IIdentifiable, INamable
|
||||
}
|
||||
}
|
||||
|
||||
if (Config.DEBUG && (getName() != null))
|
||||
{
|
||||
_log.info("Restored clan data for \"" + getName() + "\" from database.");
|
||||
}
|
||||
|
||||
restoreSubPledges();
|
||||
restoreRankPrivs();
|
||||
restoreSkills();
|
||||
@@ -1910,11 +1893,6 @@ public class L2Clan implements IIdentifiable, INamable
|
||||
// TODO: clan lvl9 or more can reinforce knights cheaper if first knight unit already created, use Config.KNIGHT_REINFORCE_COST
|
||||
}
|
||||
}
|
||||
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.finer("New sub_clan saved in db: " + getId() + "; " + pledgeType);
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@@ -1980,10 +1958,6 @@ public class L2Clan implements IIdentifiable, INamable
|
||||
ps.setInt(3, getId());
|
||||
ps.setInt(4, pledgeType);
|
||||
ps.execute();
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.finer("Subpledge updated in db: " + getId());
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@@ -2428,11 +2402,6 @@ public class L2Clan implements IIdentifiable, INamable
|
||||
return;
|
||||
}
|
||||
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.finer(player.getObjectId() + "(" + player.getName() + ") requested ally creation from ");
|
||||
}
|
||||
|
||||
if (!player.isClanLeader())
|
||||
{
|
||||
player.sendPacket(SystemMessageId.ONLY_CLAN_LEADERS_MAY_CREATE_ALLIANCES);
|
||||
|
@@ -16,7 +16,6 @@
|
||||
*/
|
||||
package com.l2jmobius.gameserver.model.actor.instance;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.gameserver.ai.CtrlIntention;
|
||||
import com.l2jmobius.gameserver.enums.InstanceType;
|
||||
import com.l2jmobius.gameserver.geoengine.GeoEngine;
|
||||
@@ -104,10 +103,6 @@ public class L2DefenderInstance extends L2Attackable
|
||||
}
|
||||
if (!isInsideRadius(getSpawn(), 40, false, false))
|
||||
{
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.info(getObjectId() + ": moving home");
|
||||
}
|
||||
setisReturningToSpawnPoint(true);
|
||||
clearAggroList();
|
||||
|
||||
@@ -147,11 +142,6 @@ public class L2DefenderInstance extends L2Attackable
|
||||
// Check if the L2PcInstance already target the L2NpcInstance
|
||||
if (this != player.getTarget())
|
||||
{
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.info("new target selected:" + getObjectId());
|
||||
}
|
||||
|
||||
// Set the target of the L2PcInstance player
|
||||
player.setTarget(this);
|
||||
}
|
||||
|
@@ -18,7 +18,6 @@ package com.l2jmobius.gameserver.model.actor.instance;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.gameserver.ThreadPoolManager;
|
||||
import com.l2jmobius.gameserver.ai.CtrlIntention;
|
||||
import com.l2jmobius.gameserver.enums.ChatType;
|
||||
@@ -99,10 +98,6 @@ public class L2FortCommanderInstance extends L2DefenderInstance
|
||||
{
|
||||
if (!isInsideRadius(getSpawn(), 200, false, false))
|
||||
{
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.info(getObjectId() + ": moving home");
|
||||
}
|
||||
setisReturningToSpawnPoint(true);
|
||||
clearAggroList();
|
||||
|
||||
|
@@ -442,10 +442,6 @@ public class L2FortManagerInstance extends L2MerchantInstance
|
||||
if (st.countTokens() >= 1)
|
||||
{
|
||||
int fee;
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.warning("Mp editing invoked");
|
||||
}
|
||||
val = st.nextToken();
|
||||
final NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
|
||||
html.setFile(player.getHtmlPrefix(), "data/html/fortress/functions-apply_confirmed.htm");
|
||||
@@ -493,10 +489,6 @@ public class L2FortManagerInstance extends L2MerchantInstance
|
||||
if (st.countTokens() >= 1)
|
||||
{
|
||||
int fee;
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.warning("Mp editing invoked");
|
||||
}
|
||||
val = st.nextToken();
|
||||
final NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
|
||||
html.setFile(player.getHtmlPrefix(), "data/html/fortress/functions-apply_confirmed.htm");
|
||||
@@ -544,10 +536,6 @@ public class L2FortManagerInstance extends L2MerchantInstance
|
||||
if (st.countTokens() >= 1)
|
||||
{
|
||||
int fee;
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.warning("Exp editing invoked");
|
||||
}
|
||||
val = st.nextToken();
|
||||
final NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
|
||||
html.setFile(player.getHtmlPrefix(), "data/html/fortress/functions-apply_confirmed.htm");
|
||||
@@ -719,10 +707,6 @@ public class L2FortManagerInstance extends L2MerchantInstance
|
||||
if (st.countTokens() >= 1)
|
||||
{
|
||||
int fee;
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.warning("Tele editing invoked");
|
||||
}
|
||||
val = st.nextToken();
|
||||
final NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
|
||||
html.setFile(player.getHtmlPrefix(), "data/html/fortress/functions-apply_confirmed.htm");
|
||||
@@ -770,10 +754,6 @@ public class L2FortManagerInstance extends L2MerchantInstance
|
||||
if (st.countTokens() >= 1)
|
||||
{
|
||||
int fee;
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.warning("Support editing invoked");
|
||||
}
|
||||
val = st.nextToken();
|
||||
final NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
|
||||
html.setFile(player.getHtmlPrefix(), "data/html/fortress/functions-apply_confirmed.htm");
|
||||
|
@@ -16,8 +16,6 @@
|
||||
*/
|
||||
package com.l2jmobius.gameserver.model.actor.instance;
|
||||
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.gameserver.ai.CtrlIntention;
|
||||
import com.l2jmobius.gameserver.enums.InstanceType;
|
||||
@@ -36,8 +34,6 @@ import com.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
||||
*/
|
||||
public class L2GuardInstance extends L2Attackable
|
||||
{
|
||||
private static Logger _log = Logger.getLogger(L2GuardInstance.class.getName());
|
||||
|
||||
/**
|
||||
* Constructor of L2GuardInstance (use L2Character and L2NpcInstance constructor).<br>
|
||||
* <B><U> Actions</U> :</B>
|
||||
@@ -172,11 +168,6 @@ public class L2GuardInstance extends L2Attackable
|
||||
// Check if the L2PcInstance is in the _aggroList of the L2GuardInstance
|
||||
if (containsTarget(player))
|
||||
{
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.finer(player.getObjectId() + ": Attacked guard " + getObjectId());
|
||||
}
|
||||
|
||||
// Set the L2PcInstance Intention to AI_INTENTION_ATTACK
|
||||
player.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, this);
|
||||
}
|
||||
|
@@ -19,7 +19,6 @@ package com.l2jmobius.gameserver.model.actor.instance;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.SkillTreesData;
|
||||
import com.l2jmobius.gameserver.enums.InstanceType;
|
||||
import com.l2jmobius.gameserver.model.L2SkillLearn;
|
||||
@@ -61,11 +60,6 @@ public class L2NpcInstance extends L2Npc
|
||||
*/
|
||||
public static void showSkillList(L2PcInstance player, L2Npc npc, ClassId classId)
|
||||
{
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.finer("SkillList activated on: " + npc.getObjectId());
|
||||
}
|
||||
|
||||
final int npcId = npc.getTemplate().getId();
|
||||
if (npcId == 32611) // Tolonis (Officer)
|
||||
{
|
||||
|
@@ -3887,20 +3887,11 @@ public final class L2PcInstance extends L2Playable
|
||||
final L2Summon pet = getPet();
|
||||
if (((pet != null) && (pet.getControlObjectId() == objectId)) || (getMountObjectID() == objectId))
|
||||
{
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.finest(getObjectId() + ": player tried to " + action + " item controling pet");
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
if (isProcessingItem(objectId))
|
||||
{
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.finest(getObjectId() + ":player tried to " + action + " an enchant scroll he was using");
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -10581,20 +10572,11 @@ public final class L2PcInstance extends L2Playable
|
||||
final L2Summon pet = getPet();
|
||||
if (((pet != null) && (pet.getControlObjectId() == objectId)) || (getMountObjectID() == objectId))
|
||||
{
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.finest(getObjectId() + ": player tried to " + action + " item controling pet");
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
if (isProcessingItem(objectId))
|
||||
{
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.finest(getObjectId() + ":player tried to " + action + " an enchant scroll he was using");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@@ -23,7 +23,6 @@ import java.util.concurrent.atomic.AtomicInteger;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.gameserver.ThreadPoolManager;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
@@ -207,11 +206,6 @@ public class CharStatus
|
||||
{
|
||||
if ((_regTask == null) && !getActiveChar().isDead())
|
||||
{
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.finer("HP/MP regen started");
|
||||
}
|
||||
|
||||
// Get the Regeneration period
|
||||
final int period = Formulas.getRegeneratePeriod(getActiveChar());
|
||||
|
||||
@@ -232,11 +226,6 @@ public class CharStatus
|
||||
{
|
||||
if (_regTask != null)
|
||||
{
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.finer("HP/MP regen stop");
|
||||
}
|
||||
|
||||
// Stop the HP/MP/CP Regeneration task
|
||||
_regTask.cancel(false);
|
||||
_regTask = null;
|
||||
|
@@ -24,7 +24,6 @@ import java.util.concurrent.ScheduledFuture;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.commons.util.Rnd;
|
||||
import com.l2jmobius.gameserver.ThreadPoolManager;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.NpcData;
|
||||
@@ -307,11 +306,6 @@ public final class BlockCheckerEngine
|
||||
_abnormalEnd = true;
|
||||
|
||||
ThreadPoolManager.execute(new EndEvent());
|
||||
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.info("Handys Block Checker Event at arena " + _arena + " ended due lack of players!");
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
|
@@ -128,12 +128,6 @@ public final class Instance implements IIdentifiable, INamable
|
||||
// Notify DP scripts
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnInstanceCreated(this, player), _template);
|
||||
}
|
||||
|
||||
// Debug logger
|
||||
if (Config.DEBUG_INSTANCES)
|
||||
{
|
||||
LOGGER.info("Instance " + _template.getName() + " (" + _template.getId() + ") has been created with instance id " + getId());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -1327,11 +1327,6 @@ public abstract class Inventory extends ItemContainer
|
||||
*/
|
||||
public L2ItemInstance unEquipItemInBodySlot(int slot)
|
||||
{
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
LOGGER.info("Unequip body slot: " + slot);
|
||||
}
|
||||
|
||||
int pdollSlot = -1;
|
||||
|
||||
switch (slot)
|
||||
|
@@ -264,10 +264,6 @@ public final class Skill implements IIdentifiable
|
||||
|
||||
if (Config.ENABLE_MODIFY_SKILL_REUSE && Config.SKILL_REUSE_LIST.containsKey(_id))
|
||||
{
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.info("*** Skill " + _name + " (" + _level + ") changed reuse from " + set.getInt("reuseDelay", 0) + " to " + Config.SKILL_REUSE_LIST.get(_id) + " seconds.");
|
||||
}
|
||||
_reuseDelay = Config.SKILL_REUSE_LIST.get(_id);
|
||||
}
|
||||
else
|
||||
|
@@ -170,10 +170,6 @@ public final class L2GameClient extends ChannelInboundHandler<L2GameClient>
|
||||
@Override
|
||||
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause)
|
||||
{
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
LOGGER.log(Level.WARNING, "Network exception caught for: " + toString(), cause);
|
||||
}
|
||||
}
|
||||
|
||||
public Channel getChannel()
|
||||
|
@@ -32,8 +32,11 @@ import com.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
||||
public final class Action implements IClientIncomingPacket
|
||||
{
|
||||
private int _objectId;
|
||||
@SuppressWarnings("unused")
|
||||
private int _originX;
|
||||
@SuppressWarnings("unused")
|
||||
private int _originY;
|
||||
@SuppressWarnings("unused")
|
||||
private int _originZ;
|
||||
private int _actionId;
|
||||
|
||||
@@ -51,11 +54,6 @@ public final class Action implements IClientIncomingPacket
|
||||
@Override
|
||||
public void run(L2GameClient client)
|
||||
{
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.info(getClass().getSimpleName() + ": " + (_actionId == 0 ? "Simple-click" : "Shift-click") + " Target object ID: " + _objectId + " orignX: " + _originX + " orignY: " + _originY + " orignZ: " + _originZ);
|
||||
}
|
||||
|
||||
// Get the current L2PcInstance of the player
|
||||
final L2PcInstance activeChar = client.getActiveChar();
|
||||
if (activeChar == null)
|
||||
|
@@ -16,7 +16,6 @@
|
||||
*/
|
||||
package com.l2jmobius.gameserver.network.clientpackets;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.commons.network.PacketReader;
|
||||
import com.l2jmobius.gameserver.LoginServerThread;
|
||||
import com.l2jmobius.gameserver.LoginServerThread.SessionKey;
|
||||
@@ -60,11 +59,6 @@ public final class AuthLogin implements IClientIncomingPacket
|
||||
}
|
||||
|
||||
final SessionKey key = new SessionKey(_loginKey1, _loginKey2, _playKey1, _playKey2);
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.info("user:" + _loginName);
|
||||
_log.info("key:" + key);
|
||||
}
|
||||
|
||||
// avoid potential exploits
|
||||
if (client.getAccountName() == null)
|
||||
|
@@ -16,7 +16,6 @@
|
||||
*/
|
||||
package com.l2jmobius.gameserver.network.clientpackets;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.commons.network.PacketReader;
|
||||
import com.l2jmobius.gameserver.ai.CtrlEvent;
|
||||
import com.l2jmobius.gameserver.model.Location;
|
||||
@@ -53,10 +52,6 @@ public final class CannotMoveAnymore implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.finer("client: x:" + _x + " y:" + _y + " z:" + _z + " server x:" + player.getX() + " y:" + player.getY() + " z:" + player.getZ());
|
||||
}
|
||||
if (player.getAI() != null)
|
||||
{
|
||||
player.getAI().notifyEvent(CtrlEvent.EVT_ARRIVED_BLOCKED, new Location(_x, _y, _z, _heading));
|
||||
|
@@ -92,11 +92,6 @@ public final class CharacterCreate implements IClientIncomingPacket
|
||||
// Last Verified: May 30, 2009 - Gracia Final - Players are able to create characters with names consisting of as little as 1,2,3 letter/number combinations.
|
||||
if ((_name.length() < 1) || (_name.length() > 16))
|
||||
{
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.finer("Character Creation Failure: Character name " + _name + " is invalid. Message generated: Your title cannot exceed 16 characters in length. Please try again.");
|
||||
}
|
||||
|
||||
client.sendPacket(new CharCreateFail(CharCreateFail.REASON_16_ENG_CHARS));
|
||||
return;
|
||||
}
|
||||
@@ -122,11 +117,6 @@ public final class CharacterCreate implements IClientIncomingPacket
|
||||
// Last Verified: May 30, 2009 - Gracia Final
|
||||
if (!Util.isAlphaNumeric(_name) || !isValidName(_name))
|
||||
{
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.finer("Character Creation Failure: Character name " + _name + " is invalid. Message generated: Incorrect name. Please try again.");
|
||||
}
|
||||
|
||||
client.sendPacket(new CharCreateFail(CharCreateFail.REASON_INCORRECT_NAME));
|
||||
return;
|
||||
}
|
||||
@@ -165,21 +155,11 @@ public final class CharacterCreate implements IClientIncomingPacket
|
||||
{
|
||||
if ((CharNameTable.getInstance().getAccountCharacterCount(client.getAccountName()) >= Config.MAX_CHARACTERS_NUMBER_PER_ACCOUNT) && (Config.MAX_CHARACTERS_NUMBER_PER_ACCOUNT != 0))
|
||||
{
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.finer("Max number of characters reached. Creation failed.");
|
||||
}
|
||||
|
||||
client.sendPacket(new CharCreateFail(CharCreateFail.REASON_TOO_MANY_CHARACTERS));
|
||||
return;
|
||||
}
|
||||
else if (CharNameTable.getInstance().doesCharNameExist(_name))
|
||||
{
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.finer("Character Creation Failure: Message generated: You cannot create another character. Please delete the existing character and try again.");
|
||||
}
|
||||
|
||||
client.sendPacket(new CharCreateFail(CharCreateFail.REASON_NAME_ALREADY_EXISTS));
|
||||
return;
|
||||
}
|
||||
@@ -187,11 +167,6 @@ public final class CharacterCreate implements IClientIncomingPacket
|
||||
template = PlayerTemplateData.getInstance().getTemplate(_classId);
|
||||
if ((template == null) || (ClassId.getClassId(_classId).level() > 0))
|
||||
{
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.finer("Character Creation Failure: " + _name + " classId: " + _classId + " Template: " + template + " Message generated: Your character creation has failed.");
|
||||
}
|
||||
|
||||
client.sendPacket(new CharCreateFail(CharCreateFail.REASON_CREATION_FAILED));
|
||||
return;
|
||||
}
|
||||
@@ -286,11 +261,6 @@ public final class CharacterCreate implements IClientIncomingPacket
|
||||
|
||||
private void initNewChar(L2GameClient client, L2PcInstance newChar)
|
||||
{
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.finer("Character init start");
|
||||
}
|
||||
|
||||
L2World.getInstance().storeObject(newChar);
|
||||
|
||||
if (Config.STARTING_ADENA > 0)
|
||||
@@ -350,11 +320,6 @@ public final class CharacterCreate implements IClientIncomingPacket
|
||||
|
||||
for (L2SkillLearn skill : SkillTreesData.getInstance().getAvailableSkills(newChar, newChar.getClassId(), false, true))
|
||||
{
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.finer("Adding starter skill:" + skill.getSkillId() + " / " + skill.getSkillLevel());
|
||||
}
|
||||
|
||||
newChar.addSkill(SkillData.getInstance().getSkill(skill.getSkillId(), skill.getSkillLevel()), true);
|
||||
}
|
||||
|
||||
@@ -372,10 +337,5 @@ public final class CharacterCreate implements IClientIncomingPacket
|
||||
|
||||
final CharSelectionInfo cl = new CharSelectionInfo(client.getAccountName(), client.getSessionId().playOkID1);
|
||||
client.setCharSelection(cl.getCharInfo());
|
||||
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.finer("Character init end");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -18,7 +18,6 @@ package com.l2jmobius.gameserver.network.clientpackets;
|
||||
|
||||
import java.util.logging.Level;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.commons.network.PacketReader;
|
||||
import com.l2jmobius.gameserver.enums.CharacterDeleteFailType;
|
||||
import com.l2jmobius.gameserver.model.CharSelectInfoPackage;
|
||||
@@ -55,11 +54,6 @@ public final class CharacterDelete implements IClientIncomingPacket
|
||||
// return;
|
||||
// }
|
||||
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.finer("deleting slot:" + _charSlot);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
final CharacterDeleteFailType failType = client.markToDeleteChar(_charSlot);
|
||||
|
@@ -145,12 +145,6 @@ public class CharacterSelect implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
|
||||
// The L2PcInstance must be created here, so that it can be attached to the L2GameClient
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.finer("selected slot:" + _charSlot);
|
||||
}
|
||||
|
||||
// load up character from disk
|
||||
final L2PcInstance cha = client.loadCharFromDisk(_charSlot);
|
||||
if (cha == null)
|
||||
|
@@ -168,13 +168,10 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
vars.remove("INSTANCE_RESTORE");
|
||||
}
|
||||
|
||||
if (L2World.getInstance().findObject(activeChar.getObjectId()) != null)
|
||||
{
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.warning("User already exists in Object ID map! User " + activeChar.getName() + " is a character clone.");
|
||||
}
|
||||
}
|
||||
// if (L2World.getInstance().findObject(activeChar.getObjectId()) != null)
|
||||
// {
|
||||
// _log.warning("User already exists in Object ID map! User " + activeChar.getName() + " is a character clone.");
|
||||
// }
|
||||
|
||||
if (Config.PVP_COLOR_SYSTEM_ENABLED && !Config.FACTION_SYSTEM_ENABLED)
|
||||
{
|
||||
|
@@ -149,20 +149,12 @@ public final class RequestDropItem implements IClientIncomingPacket
|
||||
|
||||
if ((L2Item.TYPE2_QUEST == item.getItem().getType2()) && !activeChar.canOverrideCond(PcCondOverride.DROP_ALL_ITEMS))
|
||||
{
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.finest(activeChar.getObjectId() + ":player tried to drop quest item");
|
||||
}
|
||||
activeChar.sendPacket(SystemMessageId.THAT_ITEM_CANNOT_BE_DISCARDED_OR_EXCHANGED);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!activeChar.isInsideRadius(_x, _y, 0, 150, false, false) || (Math.abs(_z - activeChar.getZ()) > 50))
|
||||
{
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.finest(activeChar.getObjectId() + ": trying to drop too far away");
|
||||
}
|
||||
activeChar.sendPacket(SystemMessageId.YOU_CANNOT_DISCARD_SOMETHING_THAT_FAR_AWAY_FROM_YOU);
|
||||
return;
|
||||
}
|
||||
@@ -173,11 +165,6 @@ public final class RequestDropItem implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.finer("requested drop item " + _objectId + "(" + item.getCount() + ") at " + _x + "/" + _y + "/" + _z);
|
||||
}
|
||||
|
||||
if (item.isEquipped())
|
||||
{
|
||||
activeChar.getInventory().unEquipItemInSlot(item.getLocationSlot());
|
||||
@@ -187,11 +174,6 @@ public final class RequestDropItem implements IClientIncomingPacket
|
||||
|
||||
final L2ItemInstance dropedItem = activeChar.dropItem("Drop", _objectId, _count, _x, _y, _z, null, false, false);
|
||||
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.finer("dropping " + _objectId + " item(" + _count + ") at: " + _x + " " + _y + " " + _z);
|
||||
}
|
||||
|
||||
// activeChar.broadcastUserInfo();
|
||||
|
||||
if (activeChar.isGM())
|
||||
|
@@ -16,7 +16,6 @@
|
||||
*/
|
||||
package com.l2jmobius.gameserver.network.clientpackets;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.commons.network.PacketReader;
|
||||
import com.l2jmobius.gameserver.ThreadPoolManager;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.FakePlayerData;
|
||||
@@ -193,11 +192,6 @@ public final class RequestDuelStart implements IClientIncomingPacket
|
||||
activeChar.onTransactionRequest(partyLeader);
|
||||
partyLeader.sendPacket(new ExDuelAskStart(activeChar.getName(), _partyDuel));
|
||||
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.finer(activeChar.getName() + " requested a duel with " + partyLeader.getName());
|
||||
}
|
||||
|
||||
SystemMessage msg = SystemMessage.getSystemMessage(SystemMessageId.C1_S_PARTY_HAS_BEEN_CHALLENGED_TO_A_DUEL);
|
||||
msg.addString(partyLeader.getName());
|
||||
activeChar.sendPacket(msg);
|
||||
@@ -222,11 +216,6 @@ public final class RequestDuelStart implements IClientIncomingPacket
|
||||
activeChar.onTransactionRequest(targetChar);
|
||||
targetChar.sendPacket(new ExDuelAskStart(activeChar.getName(), _partyDuel));
|
||||
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.finer(activeChar.getName() + " requested a duel with " + targetChar.getName());
|
||||
}
|
||||
|
||||
SystemMessage msg = SystemMessage.getSystemMessage(SystemMessageId.C1_HAS_BEEN_CHALLENGED_TO_A_DUEL);
|
||||
msg.addString(targetChar.getName());
|
||||
activeChar.sendPacket(msg);
|
||||
|
@@ -16,7 +16,6 @@
|
||||
*/
|
||||
package com.l2jmobius.gameserver.network.clientpackets;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.commons.network.PacketReader;
|
||||
import com.l2jmobius.gameserver.data.sql.impl.ClanTable;
|
||||
import com.l2jmobius.gameserver.model.L2Clan;
|
||||
@@ -48,10 +47,6 @@ public final class RequestPledgeInfo implements IClientIncomingPacket
|
||||
final L2Clan clan = ClanTable.getInstance().getClan(_clanId);
|
||||
if (clan == null)
|
||||
{
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.warning(getClass().getSimpleName() + ": Clan data for clanId " + _clanId + " is missing for player " + activeChar);
|
||||
}
|
||||
return; // we have no clan data ?!? should not happen
|
||||
}
|
||||
|
||||
|
@@ -67,11 +67,6 @@ public final class RequestRestart implements IClientIncomingPacket
|
||||
|
||||
if (AttackStanceTaskManager.getInstance().hasAttackStanceTask(player) && !(player.isGM() && Config.GM_RESTART_FIGHTING))
|
||||
{
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.finer("Player " + player.getName() + " tried to logout while fighting.");
|
||||
}
|
||||
|
||||
player.sendPacket(SystemMessageId.YOU_CANNOT_RESTART_WHILE_IN_COMBAT);
|
||||
client.sendPacket(RestartResponse.FALSE);
|
||||
return;
|
||||
|
@@ -99,11 +99,6 @@ public final class Say2 implements IClientIncomingPacket
|
||||
@Override
|
||||
public void run(L2GameClient client)
|
||||
{
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.info("Say2: Msg Type = '" + _type + "' Text = '" + _text + "'.");
|
||||
}
|
||||
|
||||
final L2PcInstance activeChar = client.getActiveChar();
|
||||
if (activeChar == null)
|
||||
{
|
||||
|
@@ -16,7 +16,6 @@
|
||||
*/
|
||||
package com.l2jmobius.gameserver.network.clientpackets;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.commons.network.PacketReader;
|
||||
import com.l2jmobius.gameserver.model.L2World;
|
||||
import com.l2jmobius.gameserver.model.TradeList;
|
||||
@@ -56,10 +55,6 @@ public final class TradeDone implements IClientIncomingPacket
|
||||
final TradeList trade = player.getActiveTradeList();
|
||||
if (trade == null)
|
||||
{
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.warning("player.getTradeList == null in " + getClass().getSimpleName() + " for player " + player.getName());
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
@@ -195,10 +195,6 @@ public final class TradeRequest implements IClientIncomingPacket
|
||||
|
||||
if (player.isProcessingTransaction())
|
||||
{
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.finer("Already trading with someone else.");
|
||||
}
|
||||
client.sendPacket(SystemMessageId.YOU_ARE_ALREADY_TRADING_WITH_SOMEONE);
|
||||
return;
|
||||
}
|
||||
@@ -206,10 +202,6 @@ public final class TradeRequest implements IClientIncomingPacket
|
||||
SystemMessage sm;
|
||||
if (partner.isProcessingRequest() || partner.isProcessingTransaction())
|
||||
{
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.info("Transaction already in progress.");
|
||||
}
|
||||
sm = SystemMessage.getSystemMessage(SystemMessageId.C1_IS_ON_ANOTHER_TASK_PLEASE_TRY_AGAIN_LATER);
|
||||
sm.addString(partner.getName());
|
||||
client.sendPacket(sm);
|
||||
|
@@ -281,10 +281,6 @@ public final class UseItem implements IClientIncomingPacket
|
||||
{
|
||||
_log.warning("Unmanaged Item handler: " + etcItem.getHandlerName() + " for Item Id: " + _itemId + "!");
|
||||
}
|
||||
else if (Config.DEBUG)
|
||||
{
|
||||
_log.warning("No Item handler registered for Item Id: " + _itemId + "!");
|
||||
}
|
||||
}
|
||||
else if (handler.useItem(activeChar, item, _ctrlPressed))
|
||||
{
|
||||
|
@@ -18,7 +18,6 @@ package com.l2jmobius.gameserver.util;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.concurrent.CopyOnWriteArrayList;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.commons.util.Rnd;
|
||||
@@ -35,8 +34,6 @@ import com.l2jmobius.gameserver.model.holders.MinionHolder;
|
||||
*/
|
||||
public class MinionList
|
||||
{
|
||||
private static final Logger _log = Logger.getLogger(MinionList.class.getName());
|
||||
|
||||
protected final L2MonsterInstance _master;
|
||||
/** List containing the current spawned minions */
|
||||
private final List<L2MonsterInstance> _minionReferences = new CopyOnWriteArrayList<>();
|
||||
@@ -385,11 +382,6 @@ public class MinionList
|
||||
|
||||
minion.spawnMe(newX, newY, master.getZ());
|
||||
|
||||
if (Config.DEBUG)
|
||||
{
|
||||
_log.info("Spawned minion template " + minion.getId() + " with objid: " + minion.getObjectId() + " to boss " + master.getObjectId() + " ,at: " + minion.getX() + " x, " + minion.getY() + " y, " + minion.getZ() + " z");
|
||||
}
|
||||
|
||||
return minion;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user