Refactored logger variables to caps.

This commit is contained in:
MobiusDev
2018-04-11 12:23:51 +00:00
parent 847ff1fa4f
commit f6ee0584bf
2180 changed files with 7679 additions and 7634 deletions
@@ -24,7 +24,7 @@ import java.util.logging.Logger;
*/
public abstract class BaseRecievePacket
{
private static final Logger _log = Logger.getLogger(BaseRecievePacket.class.getName());
private static final Logger LOGGER = Logger.getLogger(BaseRecievePacket.class.getName());
private final byte[] _decrypt;
private int _off;
@@ -78,7 +78,7 @@ public abstract class BaseRecievePacket
}
catch (Exception e)
{
_log.warning(getClass().getSimpleName() + ": " + e.getMessage());
LOGGER.warning(getClass().getSimpleName() + ": " + e.getMessage());
}
return result;
@@ -26,7 +26,7 @@ import java.util.logging.Logger;
*/
public abstract class BaseSendablePacket
{
private static final Logger _log = Logger.getLogger(BaseSendablePacket.class.getName());
private static final Logger LOGGER = Logger.getLogger(BaseSendablePacket.class.getName());
private final ByteArrayOutputStream _bao;
@@ -78,7 +78,7 @@ public abstract class BaseSendablePacket
}
catch (Exception e)
{
_log.warning(getClass().getSimpleName() + ": " + e.getMessage());
LOGGER.warning(getClass().getSimpleName() + ": " + e.getMessage());
}
_bao.write(0);
@@ -93,7 +93,7 @@ public abstract class BaseSendablePacket
}
catch (IOException e)
{
_log.warning(getClass().getSimpleName() + ": " + e.getMessage());
LOGGER.warning(getClass().getSimpleName() + ": " + e.getMessage());
}
}
@@ -24,7 +24,7 @@ import java.util.logging.Logger;
public class ScrambledKeyPair
{
private static Logger _log = Logger.getLogger(ScrambledKeyPair.class.getName());
private static Logger LOGGER = Logger.getLogger(ScrambledKeyPair.class.getName());
public KeyPair _pair;
public byte[] _scrambledModulus;
@@ -66,7 +66,7 @@ public class ScrambledKeyPair
{
scrambledMod[0x40 + i] = (byte) (scrambledMod[0x40 + i] ^ scrambledMod[i]);
}
_log.finer("Modulus was scrambled");
LOGGER.finer("Modulus was scrambled");
return scrambledMod;
}
@@ -52,7 +52,7 @@ import com.l2jmobius.gameserver.util.Broadcast;
*/
public class SevenSigns
{
protected static final Logger _log = Logger.getLogger(SevenSigns.class.getName());
protected static final Logger LOGGER = Logger.getLogger(SevenSigns.class.getName());
// Basic Seven Signs Constants \\
public static final String SEVEN_SIGNS_HTML_PATH = "data/html/seven_signs/";
@@ -148,36 +148,36 @@ public class SevenSigns
}
catch (Exception e)
{
_log.log(Level.SEVERE, "SevenSigns: Failed to load configuration: " + e.getMessage(), e);
LOGGER.log(Level.SEVERE, "SevenSigns: Failed to load configuration: " + e.getMessage(), e);
}
_log.info("SevenSigns: Currently in the " + getCurrentPeriodName() + " period!");
LOGGER.info("SevenSigns: Currently in the " + getCurrentPeriodName() + " period!");
initializeSeals();
if (isSealValidationPeriod())
{
if (getCabalHighestScore() == CABAL_NULL)
{
_log.info("SevenSigns: The competition ended with a tie last week.");
LOGGER.info("SevenSigns: The competition ended with a tie last week.");
}
else
{
_log.info("SevenSigns: The " + getCabalName(getCabalHighestScore()) + " were victorious last week.");
LOGGER.info("SevenSigns: The " + getCabalName(getCabalHighestScore()) + " were victorious last week.");
}
}
else if (getCabalHighestScore() == CABAL_NULL)
{
_log.info("SevenSigns: The competition, if the current trend continues, will end in a tie this week.");
LOGGER.info("SevenSigns: The competition, if the current trend continues, will end in a tie this week.");
}
else
{
_log.info("SevenSigns: The " + getCabalName(getCabalHighestScore()) + " are in the lead this week.");
LOGGER.info("SevenSigns: The " + getCabalName(getCabalHighestScore()) + " are in the lead this week.");
}
long milliToChange = 0;
if (isNextPeriodChangeInPast())
{
_log.info("SevenSigns: Next period change was in the past (server was offline), changing periods now!");
LOGGER.info("SevenSigns: Next period change was in the past (server was offline), changing periods now!");
}
else
{
@@ -197,7 +197,7 @@ public class SevenSigns
final int numHours = (int) Math.floor(countDown % 24);
final int numDays = (int) Math.floor((countDown - numHours) / 24);
_log.info("SevenSigns: Next period begins in " + numDays + " days, " + numHours + " hours and " + numMins + " mins.");
LOGGER.info("SevenSigns: Next period begins in " + numDays + " days, " + numHours + " hours and " + numMins + " mins.");
}
@@ -549,7 +549,7 @@ public class SevenSigns
break;
}
}
_log.info("SevenSigns: Next period change set to " + _nextPeriodChange.getTime());
LOGGER.info("SevenSigns: Next period change set to " + _nextPeriodChange.getTime());
}
public final String getCurrentPeriodName()
@@ -906,7 +906,7 @@ public class SevenSigns
}
catch (SQLException e)
{
_log.log(Level.SEVERE, "SevenSigns: Unable to load Seven Signs data from database: " + e.getMessage(), e);
LOGGER.log(Level.SEVERE, "SevenSigns: Unable to load Seven Signs data from database: " + e.getMessage(), e);
}
// Festival data is loaded now after the Seven Signs engine data.
}
@@ -936,7 +936,7 @@ public class SevenSigns
}
catch (SQLException e)
{
_log.log(Level.SEVERE, "SevenSigns: Unable to save data to database: " + e.getMessage(), e);
LOGGER.log(Level.SEVERE, "SevenSigns: Unable to save data to database: " + e.getMessage(), e);
}
}
@@ -963,7 +963,7 @@ public class SevenSigns
}
catch (SQLException e)
{
_log.log(Level.SEVERE, "SevenSigns: Unable to save data to database: " + e.getMessage(), e);
LOGGER.log(Level.SEVERE, "SevenSigns: Unable to save data to database: " + e.getMessage(), e);
}
}
@@ -1000,7 +1000,7 @@ public class SevenSigns
}
catch (SQLException e)
{
_log.log(Level.SEVERE, "SevenSigns: Unable to save data to database: " + e.getMessage(), e);
LOGGER.log(Level.SEVERE, "SevenSigns: Unable to save data to database: " + e.getMessage(), e);
}
}
@@ -1066,7 +1066,7 @@ public class SevenSigns
}
catch (SQLException e)
{
_log.log(Level.SEVERE, "SevenSigns: Failed to save data: " + e.getMessage(), e);
LOGGER.log(Level.SEVERE, "SevenSigns: Failed to save data: " + e.getMessage(), e);
}
}
@@ -1257,16 +1257,16 @@ public class SevenSigns
{
if (isSealValidationPeriod())
{
_log.info("SevenSigns: The " + getCabalName(e.getValue()) + " have won the " + getSealName(e.getKey(), false) + ".");
LOGGER.info("SevenSigns: The " + getCabalName(e.getValue()) + " have won the " + getSealName(e.getKey(), false) + ".");
}
else
{
_log.info("SevenSigns: The " + getSealName(e.getKey(), false) + " is currently owned by " + getCabalName(e.getValue()) + ".");
LOGGER.info("SevenSigns: The " + getSealName(e.getKey(), false) + " is currently owned by " + getCabalName(e.getValue()) + ".");
}
}
else
{
_log.info("SevenSigns: The " + getSealName(e.getKey(), false) + " remains unclaimed.");
LOGGER.info("SevenSigns: The " + getSealName(e.getKey(), false) + " remains unclaimed.");
}
}
}
@@ -1584,7 +1584,7 @@ public class SevenSigns
giveCPMult(getSealOwner(SEAL_STRIFE));
// Send message that Seal Validation has begun.
sendMessageToAll(SystemMessageId.SEVEN_SIGNS_THE_SEAL_VALIDATION_PERIOD_HAS_BEGUN);
_log.info("SevenSigns: The " + getCabalName(_previousWinner) + " have won the competition with " + getCurrentScore(_previousWinner) + " points!");
LOGGER.info("SevenSigns: The " + getCabalName(_previousWinner) + " have won the competition with " + getCurrentScore(_previousWinner) + " points!");
break;
}
case PERIOD_SEAL_VALIDATION: // Reset for New Cycle
@@ -1621,7 +1621,7 @@ public class SevenSigns
Broadcast.toAllOnlinePlayers(ss);
spawnSevenSignsNPC();
_log.info("SevenSigns: The " + getCurrentPeriodName() + " period has begun!");
LOGGER.info("SevenSigns: The " + getCurrentPeriodName() + " period has begun!");
setCalendarForNextPeriodChange();
@@ -71,7 +71,7 @@ import com.l2jmobius.gameserver.util.Util;
*/
public class SevenSignsFestival implements SpawnListener
{
protected static final Logger _log = Logger.getLogger(SevenSignsFestival.class.getName());
protected static final Logger LOGGER = Logger.getLogger(SevenSignsFestival.class.getName());
private static final String GET_CLAN_NAME = "SELECT clan_name FROM clan_data WHERE clan_id = (SELECT clanid FROM characters WHERE char_name = ?)";
@@ -792,7 +792,7 @@ public class SevenSignsFestival implements SpawnListener
if (SevenSigns.getInstance().isSealValidationPeriod())
{
_log.info("SevenSignsFestival: Initialization bypassed due to Seal Validation in effect.");
LOGGER.info("SevenSignsFestival: Initialization bypassed due to Seal Validation in effect.");
return;
}
@@ -933,7 +933,7 @@ public class SevenSignsFestival implements SpawnListener
setNextFestivalStart(Config.ALT_FESTIVAL_MANAGER_START + FESTIVAL_SIGNUP_TIME);
_managerScheduledTask = ThreadPool.scheduleAtFixedRate(_managerInstance, Config.ALT_FESTIVAL_MANAGER_START, Config.ALT_FESTIVAL_CYCLE_LENGTH);
_log.info("SevenSignsFestival: The first Festival of Darkness cycle begins in " + (Config.ALT_FESTIVAL_MANAGER_START / 60000) + " minute(s).");
LOGGER.info("SevenSignsFestival: The first Festival of Darkness cycle begins in " + (Config.ALT_FESTIVAL_MANAGER_START / 60000) + " minute(s).");
}
/**
@@ -971,7 +971,7 @@ public class SevenSignsFestival implements SpawnListener
}
catch (SQLException e)
{
_log.log(Level.SEVERE, "SevenSignsFestival: Failed to load configuration: " + e.getMessage(), e);
LOGGER.log(Level.SEVERE, "SevenSignsFestival: Failed to load configuration: " + e.getMessage(), e);
}
final StringBuilder query = new StringBuilder();
@@ -1005,7 +1005,7 @@ public class SevenSignsFestival implements SpawnListener
}
catch (SQLException e)
{
_log.log(Level.SEVERE, "SevenSignsFestival: Failed to load configuration: " + e.getMessage(), e);
LOGGER.log(Level.SEVERE, "SevenSignsFestival: Failed to load configuration: " + e.getMessage(), e);
}
}
@@ -1035,7 +1035,7 @@ public class SevenSignsFestival implements SpawnListener
}
catch (SQLException e)
{
_log.log(Level.SEVERE, "SevenSignsFestival: Failed to save configuration: " + e.getMessage(), e);
LOGGER.log(Level.SEVERE, "SevenSignsFestival: Failed to save configuration: " + e.getMessage(), e);
}
// Updates Seven Signs DB data also, so call only if really necessary.
@@ -1144,7 +1144,7 @@ public class SevenSignsFestival implements SpawnListener
}
catch (Exception e)
{
_log.log(Level.WARNING, "Could not get clan name of " + partyMemberName + ": " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Could not get clan name of " + partyMemberName + ": " + e.getMessage(), e);
}
}
}
@@ -1220,7 +1220,7 @@ public class SevenSignsFestival implements SpawnListener
}
}
_log.info("SevenSignsFestival: Reinitialized engine for next competition period.");
LOGGER.info("SevenSignsFestival: Reinitialized engine for next competition period.");
}
public final int getCurrentFestivalCycle()
@@ -2004,7 +2004,7 @@ public class SevenSignsFestival implements SpawnListener
}
catch (Exception e)
{
_log.warning(e.getMessage());
LOGGER.warning(e.getMessage());
}
}
@@ -2153,7 +2153,7 @@ public class SevenSignsFestival implements SpawnListener
}
catch (Exception e)
{
_log.log(Level.WARNING, "SevenSignsFestival: Error while spawning Festival Witch ID " + _witchSpawn._npcId + ": " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "SevenSignsFestival: Error while spawning Festival Witch ID " + _witchSpawn._npcId + ": " + e.getMessage(), e);
}
// Make it appear as though the Witch has apparated there.
@@ -2296,7 +2296,7 @@ public class SevenSignsFestival implements SpawnListener
}
catch (Exception e)
{
_log.log(Level.WARNING, "SevenSignsFestival: Error while spawning NPC ID " + currSpawn._npcId + ": " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "SevenSignsFestival: Error while spawning NPC ID " + currSpawn._npcId + ": " + e.getMessage(), e);
}
}
}
@@ -951,7 +951,7 @@ public class L2AttackableAI extends L2CharacterAI implements Runnable
npc.setTarget(npc);
npc.doCast(sk);
npc.setTarget(target);
// _log.info(this.getActor().getName() + " used heal skill " + sk.getName() + " on itself");
// LOGGER.info(this.getActor().getName() + " used heal skill " + sk.getName() + " on itself");
return;
}
}
@@ -1067,7 +1067,7 @@ public class L2AttackableAI extends L2CharacterAI implements Runnable
npc.setTarget(npc);
npc.doCast(sk);
npc.setTarget(target);
// _log.info(this.getActor().getName() + " used heal skill " + sk.getName() + " on party");
// LOGGER.info(this.getActor().getName() + " used heal skill " + sk.getName() + " on party");
return;
}
}
@@ -1105,7 +1105,7 @@ public class L2AttackableAI extends L2CharacterAI implements Runnable
{
clientStopMoving(null);
npc.doCast(shortRangeSkill);
// _log.info(this.getActor().getName() + " used short range skill " + shortRangeSkill.getName() + " on " + npc.getTarget().getName());
// LOGGER.info(this.getActor().getName() + " used short range skill " + shortRangeSkill.getName() + " on " + npc.getTarget().getName());
return;
}
}
@@ -1117,7 +1117,7 @@ public class L2AttackableAI extends L2CharacterAI implements Runnable
{
clientStopMoving(null);
npc.doCast(longRangeSkill);
// _log.info(this.getActor().getName() + " used long range skill " + longRangeSkill.getName() + " on " + npc.getTarget().getName());
// LOGGER.info(this.getActor().getName() + " used long range skill " + longRangeSkill.getName() + " on " + npc.getTarget().getName());
return;
}
}
@@ -1715,7 +1715,7 @@ public class L2AttackableAI extends L2CharacterAI implements Runnable
catch (NullPointerException e)
{
setIntention(AI_INTENTION_ACTIVE);
// _log.warning(getClass().getSimpleName() + ": " + this.getActor().getName() + " - failed executing movementDisable()!");
// LOGGER.warning(getClass().getSimpleName() + ": " + this.getActor().getName() + " - failed executing movementDisable()!");
return;
}
}
@@ -2162,7 +2162,7 @@ public class L2AttackableAI extends L2CharacterAI implements Runnable
}
catch (Exception e)
{
// _log.warning(getClass().getSimpleName() + ": " + this.getActor().getName() + " - onEvtThink() failed!");
// LOGGER.warning(getClass().getSimpleName() + ": " + this.getActor().getName() + " - onEvtThink() failed!");
}
finally
{
@@ -30,7 +30,7 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
public class ForumsBBSManager extends BaseBBSManager
{
private static Logger _log = Logger.getLogger(ForumsBBSManager.class.getName());
private static Logger LOGGER = Logger.getLogger(ForumsBBSManager.class.getName());
private final List<Forum> _table;
private int _lastid = 1;
@@ -51,7 +51,7 @@ public class ForumsBBSManager extends BaseBBSManager
}
catch (Exception e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Data error on Forum (root): " + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Data error on Forum (root): " + e.getMessage(), e);
}
}
@@ -61,7 +61,7 @@ public class ForumsBBSManager extends BaseBBSManager
public void initRoot()
{
_table.forEach(f -> f.vload());
_log.info(getClass().getSimpleName() + ": Loaded " + _table.size() + " forums. Last forum id used: " + _lastid);
LOGGER.info(getClass().getSimpleName() + ": Loaded " + _table.size() + " forums. Last forum id used: " + _lastid);
}
/**
@@ -37,7 +37,7 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
*/
public class CharNameTable
{
private static Logger _log = Logger.getLogger(CharNameTable.class.getName());
private static Logger LOGGER = Logger.getLogger(CharNameTable.class.getName());
private final Map<Integer, String> _chars = new ConcurrentHashMap<>();
private final Map<Integer, Integer> _accessLevels = new ConcurrentHashMap<>();
@@ -114,7 +114,7 @@ public class CharNameTable
}
catch (SQLException e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Could not check existing char name: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Could not check existing char name: " + e.getMessage(), e);
}
if (id > 0)
@@ -162,7 +162,7 @@ public class CharNameTable
}
catch (SQLException e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Could not check existing char id: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Could not check existing char id: " + e.getMessage(), e);
}
return null; // not found
@@ -190,7 +190,7 @@ public class CharNameTable
}
catch (SQLException e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Could not check existing charname: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Could not check existing charname: " + e.getMessage(), e);
}
return result;
}
@@ -211,7 +211,7 @@ public class CharNameTable
}
catch (SQLException e)
{
_log.log(Level.WARNING, "Couldn't retrieve account for id: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Couldn't retrieve account for id: " + e.getMessage(), e);
}
return 0;
}
@@ -231,9 +231,9 @@ public class CharNameTable
}
catch (SQLException e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't retrieve all char id/name/access: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't retrieve all char id/name/access: " + e.getMessage(), e);
}
_log.info(getClass().getSimpleName() + ": Loaded " + _chars.size() + " char names.");
LOGGER.info(getClass().getSimpleName() + ": Loaded " + _chars.size() + " char names.");
}
public static CharNameTable getInstance()
@@ -138,7 +138,7 @@ import com.l2jmobius.gameserver.model.stats.functions.FuncTemplate;
*/
public abstract class DocumentBase
{
protected final Logger _log = Logger.getLogger(getClass().getName());
protected final Logger LOGGER = Logger.getLogger(getClass().getName());
private final File _file;
protected final Map<String, String[]> _tables = new HashMap<>();
@@ -161,7 +161,7 @@ public abstract class DocumentBase
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Error loading file " + _file, e);
LOGGER.log(Level.SEVERE, "Error loading file " + _file, e);
}
return doc;
}
@@ -311,7 +311,7 @@ public abstract class DocumentBase
parseTemplate(n, effect);
if (template instanceof L2Item)
{
_log.severe("Item " + template + " with effects!!!");
LOGGER.severe("Item " + template + " with effects!!!");
}
else if (template instanceof Skill)
{
@@ -425,7 +425,7 @@ public abstract class DocumentBase
}
if ((cond.conditions == null) || (cond.conditions.length == 0))
{
_log.severe("Empty <and> condition in " + _file);
LOGGER.severe("Empty <and> condition in " + _file);
}
return cond;
}
@@ -442,7 +442,7 @@ public abstract class DocumentBase
}
if ((cond.conditions == null) || (cond.conditions.length == 0))
{
_log.severe("Empty <or> condition in " + _file);
LOGGER.severe("Empty <or> condition in " + _file);
}
return cond;
}
@@ -456,7 +456,7 @@ public abstract class DocumentBase
return new ConditionLogicNot(parseCondition(n, template));
}
}
_log.severe("Empty <not> condition in " + _file);
LOGGER.severe("Empty <not> condition in " + _file);
return null;
}
@@ -923,7 +923,7 @@ public abstract class DocumentBase
if (cond == null)
{
_log.severe("Unrecognized <player> condition in " + _file);
LOGGER.severe("Unrecognized <player> condition in " + _file);
}
return cond;
}
@@ -1108,7 +1108,7 @@ public abstract class DocumentBase
if (cond == null)
{
_log.severe("Unrecognized <target> condition in " + _file);
LOGGER.severe("Unrecognized <target> condition in " + _file);
}
return cond;
}
@@ -1148,7 +1148,7 @@ public abstract class DocumentBase
if (old == mask)
{
_log.info("[parseUsingCondition=\"kind\"] Unknown item type name: " + item);
LOGGER.info("[parseUsingCondition=\"kind\"] Unknown item type name: " + item);
}
}
cond = joinAnd(cond, new ConditionUsingItemType(mask));
@@ -1169,7 +1169,7 @@ public abstract class DocumentBase
if (old == mask)
{
_log.info("[parseUsingCondition=\"slot\"] Unknown item slot name: " + item);
LOGGER.info("[parseUsingCondition=\"slot\"] Unknown item slot name: " + item);
}
}
cond = joinAnd(cond, new ConditionUsingSlotType(mask));
@@ -1205,7 +1205,7 @@ public abstract class DocumentBase
if (cond == null)
{
_log.severe("Unrecognized <using> condition in " + _file);
LOGGER.severe("Unrecognized <using> condition in " + _file);
}
return cond;
}
@@ -1235,7 +1235,7 @@ public abstract class DocumentBase
}
if (cond == null)
{
_log.severe("Unrecognized <game> condition in " + _file);
LOGGER.severe("Unrecognized <game> condition in " + _file);
}
return cond;
}
@@ -85,7 +85,7 @@ public final class DocumentItem extends DocumentBase
}
catch (Exception e)
{
_log.log(Level.WARNING, "Cannot create item " + _currentItem.id, e);
LOGGER.log(Level.WARNING, "Cannot create item " + _currentItem.id, e);
}
}
}
@@ -88,7 +88,7 @@ public class DocumentSkill extends DocumentBase
}
catch (RuntimeException e)
{
_log.log(Level.SEVERE, "Error in table: " + name + " of Skill Id " + _currentSkill.id, e);
LOGGER.log(Level.SEVERE, "Error in table: " + name + " of Skill Id " + _currentSkill.id, e);
return "";
}
}
@@ -102,7 +102,7 @@ public class DocumentSkill extends DocumentBase
}
catch (RuntimeException e)
{
_log.log(Level.SEVERE, "wrong level count in skill Id " + _currentSkill.id + " name: " + name + " index : " + idx, e);
LOGGER.log(Level.SEVERE, "wrong level count in skill Id " + _currentSkill.id + " name: " + name + " index : " + idx, e);
return "";
}
}
@@ -1500,7 +1500,7 @@ public class DocumentSkill extends DocumentBase
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Skill id=" + set.getInt("skill_id") + "level" + set.getInt("level"), e);
LOGGER.log(Level.SEVERE, "Skill id=" + set.getInt("skill_id") + "level" + set.getInt("level"), e);
}
}
int _count = count;
@@ -1514,7 +1514,7 @@ public class DocumentSkill extends DocumentBase
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Skill id=" + set.getInt("skill_id") + "level" + set.getInt("level"), e);
LOGGER.log(Level.SEVERE, "Skill id=" + set.getInt("skill_id") + "level" + set.getInt("level"), e);
}
}
_count = count;
@@ -1528,7 +1528,7 @@ public class DocumentSkill extends DocumentBase
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Skill id=" + set.getInt("skill_id") + "level" + set.getInt("level"), e);
LOGGER.log(Level.SEVERE, "Skill id=" + set.getInt("skill_id") + "level" + set.getInt("level"), e);
}
}
_count = count;
@@ -1542,7 +1542,7 @@ public class DocumentSkill extends DocumentBase
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Skill id=" + set.getInt("skill_id") + "level" + set.getInt("level"), e);
LOGGER.log(Level.SEVERE, "Skill id=" + set.getInt("skill_id") + "level" + set.getInt("level"), e);
}
}
_count = count;
@@ -1556,7 +1556,7 @@ public class DocumentSkill extends DocumentBase
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Skill id=" + set.getInt("skill_id") + "level" + set.getInt("level"), e);
LOGGER.log(Level.SEVERE, "Skill id=" + set.getInt("skill_id") + "level" + set.getInt("level"), e);
}
}
_count = count;
@@ -1570,7 +1570,7 @@ public class DocumentSkill extends DocumentBase
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Skill id=" + set.getInt("skill_id") + "level" + set.getInt("level"), e);
LOGGER.log(Level.SEVERE, "Skill id=" + set.getInt("skill_id") + "level" + set.getInt("level"), e);
}
}
_count = count;
@@ -1584,7 +1584,7 @@ public class DocumentSkill extends DocumentBase
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Skill id=" + set.getInt("skill_id") + "level" + set.getInt("level"), e);
LOGGER.log(Level.SEVERE, "Skill id=" + set.getInt("skill_id") + "level" + set.getInt("level"), e);
}
}
_count = count;
@@ -1598,7 +1598,7 @@ public class DocumentSkill extends DocumentBase
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Skill id=" + set.getInt("skill_id") + "level" + set.getInt("level"), e);
LOGGER.log(Level.SEVERE, "Skill id=" + set.getInt("skill_id") + "level" + set.getInt("level"), e);
}
}
_count = count;
@@ -1612,7 +1612,7 @@ public class DocumentSkill extends DocumentBase
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Skill id=" + set.getInt("skill_id") + "level" + set.getInt("level"), e);
LOGGER.log(Level.SEVERE, "Skill id=" + set.getInt("skill_id") + "level" + set.getInt("level"), e);
}
}
}
@@ -50,7 +50,7 @@ import com.l2jmobius.gameserver.util.MathUtil;
*/
public class GeoEngine
{
protected static final Logger _log = Logger.getLogger(GeoEngine.class.getName());
protected static final Logger LOGGER = Logger.getLogger(GeoEngine.class.getName());
private final ABlock[][] _blocks;
private final BlockNull _nullBlock;
@@ -69,7 +69,7 @@ public class GeoEngine
*/
public GeoEngine()
{
_log.info("GeoEngine: Initializing...");
LOGGER.info("GeoEngine: Initializing...");
// initialize block container
_blocks = new ABlock[GeoStructure.GEO_BLOCKS_X][GeoStructure.GEO_BLOCKS_Y];
@@ -103,7 +103,7 @@ public class GeoEngine
}
}
_log.info("GeoEngine: Loaded " + loaded + " geodata files.");
LOGGER.info("GeoEngine: Loaded " + loaded + " geodata files.");
// avoid wrong configs when no files are loaded
if (loaded == 0)
@@ -111,12 +111,12 @@ public class GeoEngine
if (Config.PATHFINDING)
{
Config.PATHFINDING = false;
_log.info("GeoEngine: Forcing PathFinding setting to false.");
LOGGER.info("GeoEngine: Forcing PathFinding setting to false.");
}
if (Config.COORD_SYNCHRONIZE == 2)
{
Config.COORD_SYNCHRONIZE = -1;
_log.info("GeoEngine: Forcing CoordSynchronize setting to -1.");
LOGGER.info("GeoEngine: Forcing CoordSynchronize setting to -1.");
}
}
@@ -183,7 +183,7 @@ public class GeoEngine
// check data consistency
if (buffer.remaining() > 0)
{
_log.warning("GeoEngine: Region file " + filename + " can be corrupted, remaining " + buffer.remaining() + " bytes to read.");
LOGGER.warning("GeoEngine: Region file " + filename + " can be corrupted, remaining " + buffer.remaining() + " bytes to read.");
}
// loading was successful
@@ -192,8 +192,8 @@ public class GeoEngine
catch (Exception e)
{
// an error occured while loading, load null blocks
_log.warning("GeoEngine: Error while loading " + filename + " region file.");
_log.warning(e.getMessage());
LOGGER.warning("GeoEngine: Error while loading " + filename + " region file.");
LOGGER.warning(e.getMessage());
e.printStackTrace();
// replace whole region file with null blocks
@@ -298,7 +298,7 @@ public class GeoEngine
if (block == null) // null block check
{
// TODO: Find when this can be null. (Bad geodata? Check L2World getRegion method.)
// _log.warning("Could not find geodata block at " + getWorldX(geoX) + ", " + getWorldY(geoY) + ".");
// LOGGER.warning("Could not find geodata block at " + getWorldX(geoX) + ", " + getWorldY(geoY) + ".");
return false;
}
return block.hasGeoPos();
@@ -56,11 +56,11 @@ final class GeoEnginePathfinding extends GeoEngine
}
catch (Exception e)
{
_log.warning("GeoEnginePathfinding: Can not load buffer setting: " + buf);
LOGGER.warning("GeoEnginePathfinding: Can not load buffer setting: " + buf);
}
}
_log.info("GeoEnginePathfinding: Loaded " + count + " node buffers.");
LOGGER.info("GeoEnginePathfinding: Loaded " + count + " node buffers.");
}
@Override
@@ -108,7 +108,7 @@ final class GeoEnginePathfinding extends GeoEngine
}
catch (Exception e)
{
_log.warning(e.getMessage());
LOGGER.warning(e.getMessage());
return null;
}
finally
@@ -24,7 +24,7 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
public interface IActionHandler
{
Logger _log = Logger.getLogger(IActionHandler.class.getName());
Logger LOGGER = Logger.getLogger(IActionHandler.class.getName());
boolean action(L2PcInstance activeChar, L2Object target, boolean interact);
@@ -24,7 +24,7 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
public interface IActionShiftHandler
{
Logger _log = Logger.getLogger(IActionShiftHandler.class.getName());
Logger LOGGER = Logger.getLogger(IActionShiftHandler.class.getName());
boolean action(L2PcInstance activeChar, L2Object target, boolean interact);
@@ -26,7 +26,7 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
*/
public interface IBypassHandler
{
Logger _log = Logger.getLogger(IBypassHandler.class.getName());
Logger LOGGER = Logger.getLogger(IBypassHandler.class.getName());
/**
* This is the worker method that is called when someone uses an bypass command.
@@ -26,7 +26,7 @@ import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
*/
public interface IItemHandler
{
Logger _log = Logger.getLogger(IItemHandler.class.getName());
Logger LOGGER = Logger.getLogger(IItemHandler.class.getName());
/**
* Launch task associated to the item.
@@ -26,7 +26,7 @@ import com.l2jmobius.gameserver.model.punishment.PunishmentType;
*/
public interface IPunishmentHandler
{
Logger _log = Logger.getLogger(IPunishmentHandler.class.getName());
Logger LOGGER = Logger.getLogger(IPunishmentHandler.class.getName());
void onStart(PunishmentTask task);
@@ -25,7 +25,7 @@ import java.util.logging.Logger;
*/
public interface ITelnetHandler
{
Logger _log = Logger.getLogger(ITelnetHandler.class.getName());
Logger LOGGER = Logger.getLogger(ITelnetHandler.class.getName());
/**
* this is the worker method that is called when someone uses an bypass command
@@ -22,7 +22,7 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
public interface IUserCommandHandler
{
Logger _log = Logger.getLogger(IUserCommandHandler.class.getName());
Logger LOGGER = Logger.getLogger(IUserCommandHandler.class.getName());
/**
* this is the worker method that is called when someone uses an admin command.
@@ -22,7 +22,7 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
public interface IVoicedCommandHandler
{
Logger _log = Logger.getLogger(IVoicedCommandHandler.class.getName());
Logger LOGGER = Logger.getLogger(IVoicedCommandHandler.class.getName());
/**
* this is the worker method that is called when someone uses an admin command.
@@ -38,7 +38,7 @@ import com.l2jmobius.gameserver.network.serverpackets.ExAirShipTeleportList;
public class AirShipManager
{
private static final Logger _log = Logger.getLogger(AirShipManager.class.getName());
private static final Logger LOGGER = Logger.getLogger(AirShipManager.class.getName());
private static final String LOAD_DB = "SELECT * FROM airships";
private static final String ADD_DB = "INSERT INTO airships (owner_id,fuel) VALUES (?,?)";
@@ -172,11 +172,11 @@ public class AirShipManager
}
catch (SQLException e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Could not add new airship license: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Could not add new airship license: " + e.getMessage(), e);
}
catch (Exception e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Error while initializing: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Error while initializing: " + e.getMessage(), e);
}
}
@@ -247,13 +247,13 @@ public class AirShipManager
}
catch (SQLException e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Could not load airships table: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Could not load airships table: " + e.getMessage(), e);
}
catch (Exception e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Error while initializing: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Error while initializing: " + e.getMessage(), e);
}
_log.info(getClass().getSimpleName() + ": Loaded " + _airShipsInfo.size() + " private airships");
LOGGER.info(getClass().getSimpleName() + ": Loaded " + _airShipsInfo.size() + " private airships");
}
private void storeInDb(int ownerId)
@@ -273,11 +273,11 @@ public class AirShipManager
}
catch (SQLException e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Could not update airships table: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Could not update airships table: " + e.getMessage(), e);
}
catch (Exception e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Error while save: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Error while save: " + e.getMessage(), e);
}
}
@@ -40,7 +40,7 @@ import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
*/
public final class CHSiegeManager
{
private static final Logger _log = Logger.getLogger(CHSiegeManager.class.getName());
private static final Logger LOGGER = Logger.getLogger(CHSiegeManager.class.getName());
private static final String SQL_LOAD_HALLS = "SELECT * FROM siegable_clanhall";
private final Map<Integer, SiegableHall> _siegableHalls = new HashMap<>();
@@ -76,11 +76,11 @@ public final class CHSiegeManager
_siegableHalls.put(id, hall);
ClanHallManager.addClanHall(hall);
}
_log.info(getClass().getSimpleName() + ": Loaded " + _siegableHalls.size() + " conquerable clan halls.");
LOGGER.info(getClass().getSimpleName() + ": Loaded " + _siegableHalls.size() + " conquerable clan halls.");
}
catch (Exception e)
{
_log.warning("CHSiegeManager: Could not load siegable clan halls!:" + e.getMessage());
LOGGER.warning("CHSiegeManager: Could not load siegable clan halls!:" + e.getMessage());
}
}
@@ -39,7 +39,7 @@ import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
public final class CastleManager implements InstanceListManager
{
private static final Logger _log = Logger.getLogger(CastleManager.class.getName());
private static final Logger LOGGER = Logger.getLogger(CastleManager.class.getName());
private final List<Castle> _castles = new ArrayList<>();
@@ -291,7 +291,7 @@ public final class CastleManager implements InstanceListManager
}
catch (Exception e)
{
_log.log(Level.WARNING, "Failed to remove castle circlets offline for player " + member.getName() + ": " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Failed to remove castle circlets offline for player " + member.getName() + ": " + e.getMessage(), e);
}
}
}
@@ -307,11 +307,11 @@ public final class CastleManager implements InstanceListManager
{
_castles.add(new Castle(rs.getInt("id")));
}
_log.info(getClass().getSimpleName() + ": Loaded: " + _castles.size() + " castles");
LOGGER.info(getClass().getSimpleName() + ": Loaded: " + _castles.size() + " castles");
}
catch (Exception e)
{
_log.log(Level.WARNING, "Exception: loadCastleData(): " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Exception: loadCastleData(): " + e.getMessage(), e);
}
}
@@ -32,7 +32,7 @@ import com.l2jmobius.gameserver.model.entity.Auction;
*/
public final class ClanHallAuctionManager
{
protected static final Logger _log = Logger.getLogger(ClanHallAuctionManager.class.getName());
protected static final Logger LOGGER = Logger.getLogger(ClanHallAuctionManager.class.getName());
private final List<Auction> _auctions = new ArrayList<>();
private static final String[] ITEM_INIT_DATA =
@@ -106,11 +106,11 @@ public final class ClanHallAuctionManager
{
_auctions.add(new Auction(rs.getInt("id")));
}
_log.info(getClass().getSimpleName() + ": Loaded: " + _auctions.size() + " auction(s)");
LOGGER.info(getClass().getSimpleName() + ": Loaded: " + _auctions.size() + " auction(s)");
}
catch (Exception e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Exception: AuctionManager.load(): " + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Exception: AuctionManager.load(): " + e.getMessage(), e);
}
}
@@ -159,7 +159,7 @@ public final class ClanHallAuctionManager
}
if ((i >= ItemInitDataId.length) || (ItemInitDataId[i] != id))
{
_log.warning(getClass().getSimpleName() + ": Clan Hall auction not found for Id :" + id);
LOGGER.warning(getClass().getSimpleName() + ": Clan Hall auction not found for Id :" + id);
return;
}
@@ -168,11 +168,11 @@ public final class ClanHallAuctionManager
{
s.executeUpdate("INSERT INTO `auction` VALUES " + ITEM_INIT_DATA[i]);
_auctions.add(new Auction(id));
_log.info(getClass().getSimpleName() + ": Created auction for ClanHall: " + id);
LOGGER.info(getClass().getSimpleName() + ": Created auction for ClanHall: " + id);
}
catch (Exception e)
{
_log.log(Level.SEVERE, getClass().getSimpleName() + ": Exception: Auction.initNPC(): " + e.getMessage(), e);
LOGGER.log(Level.SEVERE, getClass().getSimpleName() + ": Exception: Auction.initNPC(): " + e.getMessage(), e);
}
}
@@ -40,7 +40,7 @@ import com.l2jmobius.gameserver.model.zone.type.L2ClanHallZone;
*/
public final class ClanHallManager
{
protected static final Logger _log = Logger.getLogger(ClanHallManager.class.getName());
protected static final Logger LOGGER = Logger.getLogger(ClanHallManager.class.getName());
private final Map<Integer, AuctionableHall> _clanHall = new ConcurrentHashMap<>();
private final Map<Integer, AuctionableHall> _freeClanHall = new ConcurrentHashMap<>();
@@ -99,13 +99,13 @@ public final class ClanHallManager
ClanHallAuctionManager.getInstance().initNPC(id);
}
}
_log.info(getClass().getSimpleName() + ": Loaded: " + getClanHalls().size() + " clan halls");
_log.info(getClass().getSimpleName() + ": Loaded: " + getFreeClanHalls().size() + " free clan halls");
LOGGER.info(getClass().getSimpleName() + ": Loaded: " + getClanHalls().size() + " clan halls");
LOGGER.info(getClass().getSimpleName() + ": Loaded: " + getFreeClanHalls().size() + " free clan halls");
_loaded = true;
}
catch (Exception e)
{
_log.log(Level.WARNING, "Exception: ClanHallManager.load(): " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Exception: ClanHallManager.load(): " + e.getMessage(), e);
}
}
@@ -34,7 +34,7 @@ import com.l2jmobius.gameserver.model.entity.Couple;
*/
public final class CoupleManager
{
private static final Logger _log = Logger.getLogger(CoupleManager.class.getName());
private static final Logger LOGGER = Logger.getLogger(CoupleManager.class.getName());
private final List<Couple> _couples = new CopyOnWriteArrayList<>();
@@ -59,11 +59,11 @@ public final class CoupleManager
{
getCouples().add(new Couple(rs.getInt("id")));
}
_log.info(getClass().getSimpleName() + ": Loaded: " + getCouples().size() + " couples(s)");
LOGGER.info(getClass().getSimpleName() + ": Loaded: " + getCouples().size() + " couples(s)");
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Exception: CoupleManager.load(): " + e.getMessage(), e);
LOGGER.log(Level.SEVERE, "Exception: CoupleManager.load(): " + e.getMessage(), e);
}
}
@@ -58,7 +58,7 @@ import com.l2jmobius.gameserver.util.Broadcast;
*/
public final class CursedWeaponsManager
{
private static final Logger _log = Logger.getLogger(CursedWeaponsManager.class.getName());
private static final Logger LOGGER = Logger.getLogger(CursedWeaponsManager.class.getName());
private Map<Integer, CursedWeapon> _cursedWeapons;
@@ -79,7 +79,7 @@ public final class CursedWeaponsManager
load();
restore();
controlPlayers();
_log.info(getClass().getSimpleName() + ": Loaded : " + _cursedWeapons.size() + " cursed weapon(s).");
LOGGER.info(getClass().getSimpleName() + ": Loaded : " + _cursedWeapons.size() + " cursed weapon(s).");
}
public final void reload()
@@ -98,7 +98,7 @@ public final class CursedWeaponsManager
final File file = new File(Config.DATAPACK_ROOT + "/data/CursedWeapons.xml");
if (!file.exists())
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't find data/" + file.getName());
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't find data/" + file.getName());
return;
}
@@ -161,7 +161,7 @@ public final class CursedWeaponsManager
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Error parsing cursed weapons file.", e);
LOGGER.log(Level.SEVERE, "Error parsing cursed weapons file.", e);
return;
}
@@ -188,7 +188,7 @@ public final class CursedWeaponsManager
}
catch (Exception e)
{
_log.log(Level.WARNING, "Could not restore CursedWeapons data: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Could not restore CursedWeapons data: " + e.getMessage(), e);
}
}
@@ -221,7 +221,7 @@ public final class CursedWeaponsManager
{
// A player has the cursed weapon in his inventory ...
final int playerId = rset.getInt("owner_id");
_log.info("PROBLEM : Player " + playerId + " owns the cursed weapon " + itemId + " but he shouldn't.");
LOGGER.info("PROBLEM : Player " + playerId + " owns the cursed weapon " + itemId + " but he shouldn't.");
// Delete the item
try (PreparedStatement delete = con.prepareStatement("DELETE FROM items WHERE owner_id=? AND item_id=?"))
@@ -230,7 +230,7 @@ public final class CursedWeaponsManager
delete.setInt(2, itemId);
if (delete.executeUpdate() != 1)
{
_log.warning("Error while deleting cursed weapon " + itemId + " from userId " + playerId);
LOGGER.warning("Error while deleting cursed weapon " + itemId + " from userId " + playerId);
}
}
@@ -242,7 +242,7 @@ public final class CursedWeaponsManager
update.setInt(3, playerId);
if (update.executeUpdate() != 1)
{
_log.warning("Error while updating karma & pkkills for userId " + cw.getPlayerId());
LOGGER.warning("Error while updating karma & pkkills for userId " + cw.getPlayerId());
}
}
// clean up the cursed weapons table.
@@ -254,7 +254,7 @@ public final class CursedWeaponsManager
}
catch (Exception e)
{
_log.log(Level.WARNING, "Could not check CursedWeapons data: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Could not check CursedWeapons data: " + e.getMessage(), e);
}
}
@@ -370,7 +370,7 @@ public final class CursedWeaponsManager
}
catch (SQLException e)
{
_log.log(Level.SEVERE, "CursedWeaponsManager: Failed to remove data: " + e.getMessage(), e);
LOGGER.log(Level.SEVERE, "CursedWeaponsManager: Failed to remove data: " + e.getMessage(), e);
}
}
@@ -33,7 +33,7 @@ import com.l2jmobius.gameserver.model.actor.instance.L2RaidBossInstance;
*/
public final class DayNightSpawnManager
{
private static Logger _log = Logger.getLogger(DayNightSpawnManager.class.getName());
private static Logger LOGGER = Logger.getLogger(DayNightSpawnManager.class.getName());
private final List<L2Spawn> _dayCreatures = new ArrayList<>();
private final List<L2Spawn> _nightCreatures = new ArrayList<>();
@@ -106,7 +106,7 @@ public final class DayNightSpawnManager
i++;
}
}
_log.info("DayNightSpawnManager: Removed " + i + " " + UnspawnLogInfo + " creatures");
LOGGER.info("DayNightSpawnManager: Removed " + i + " " + UnspawnLogInfo + " creatures");
}
int i = 0;
@@ -121,11 +121,11 @@ public final class DayNightSpawnManager
i++;
}
_log.info("DayNightSpawnManager: Spawned " + i + " " + SpawnLogInfo + " creatures");
LOGGER.info("DayNightSpawnManager: Spawned " + i + " " + SpawnLogInfo + " creatures");
}
catch (Exception e)
{
_log.log(Level.WARNING, "Error while spawning creatures: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Error while spawning creatures: " + e.getMessage(), e);
}
}
@@ -152,7 +152,7 @@ public final class DayNightSpawnManager
}
default:
{
_log.warning("DayNightSpawnManager: Wrong mode sent");
LOGGER.warning("DayNightSpawnManager: Wrong mode sent");
break;
}
}
@@ -173,7 +173,7 @@ public final class DayNightSpawnManager
}
catch (Exception e)
{
_log.log(Level.WARNING, "Error while notifyChangeMode(): " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Error while notifyChangeMode(): " + e.getMessage(), e);
}
}
@@ -214,7 +214,7 @@ public final class DayNightSpawnManager
}
catch (Exception e)
{
_log.log(Level.WARNING, "Error while specialNoghtBoss(): " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Error while specialNoghtBoss(): " + e.getMessage(), e);
}
}
@@ -225,7 +225,7 @@ public final class DayNightSpawnManager
case 0:
{
boss.deleteMe();
_log.info(getClass().getSimpleName() + ": Deleting Hellman raidboss");
LOGGER.info(getClass().getSimpleName() + ": Deleting Hellman raidboss");
break;
}
case 1:
@@ -234,7 +234,7 @@ public final class DayNightSpawnManager
{
boss.spawnMe();
}
_log.info(getClass().getSimpleName() + ": Spawning Hellman raidboss");
LOGGER.info(getClass().getSimpleName() + ": Spawning Hellman raidboss");
break;
}
}
@@ -52,7 +52,7 @@ import com.l2jmobius.gameserver.util.Util;
*/
public final class DimensionalRiftManager
{
private static Logger _log = Logger.getLogger(DimensionalRiftManager.class.getName());
private static Logger LOGGER = Logger.getLogger(DimensionalRiftManager.class.getName());
private final Map<Byte, Map<Byte, DimensionalRiftRoom>> _rooms = new HashMap<>(7);
private static final int DIMENSIONAL_FRAGMENT_ITEM_ID = 7079;
@@ -106,7 +106,7 @@ public final class DimensionalRiftManager
}
catch (Exception e)
{
_log.log(Level.WARNING, "Can't load Dimension Rift zones. " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Can't load Dimension Rift zones. " + e.getMessage(), e);
}
final int typeSize = _rooms.keySet().size();
@@ -117,7 +117,7 @@ public final class DimensionalRiftManager
roomSize += _rooms.get(b).keySet().size();
}
_log.info(getClass().getSimpleName() + ": Loaded " + typeSize + " room types with " + roomSize + " rooms.");
LOGGER.info(getClass().getSimpleName() + ": Loaded " + typeSize + " room types with " + roomSize + " rooms.");
}
public void loadSpawns()
@@ -132,7 +132,7 @@ public final class DimensionalRiftManager
final File file = new File(Config.DATAPACK_ROOT, "data/DimensionalRift.xml");
if (!file.exists())
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't find data/" + file.getName());
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't find data/" + file.getName());
return;
}
@@ -170,11 +170,11 @@ public final class DimensionalRiftManager
if (!_rooms.containsKey(type))
{
_log.warning("Type " + type + " not found!");
LOGGER.warning("Type " + type + " not found!");
}
else if (!_rooms.get(type).containsKey(roomId))
{
_log.warning("Room " + roomId + " in Type " + type + " not found!");
LOGGER.warning("Room " + roomId + " in Type " + type + " not found!");
}
for (int i = 0; i < count; i++)
@@ -213,9 +213,9 @@ public final class DimensionalRiftManager
}
catch (Exception e)
{
_log.log(Level.WARNING, "Error on loading dimensional rift spawns: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Error on loading dimensional rift spawns: " + e.getMessage(), e);
}
_log.info(getClass().getSimpleName() + ": Loaded " + countGood + " dimensional rift spawns, " + countBad + " errors.");
LOGGER.info(getClass().getSimpleName() + ": Loaded " + countGood + " dimensional rift spawns, " + countBad + " errors.");
}
public void reload()
@@ -444,7 +444,7 @@ public final class DimensionalRiftManager
showHtmlFile(player, "data/html/seven_signs/rift/Cheater.htm", npc);
if (!player.isGM())
{
_log.warning("Player " + player.getName() + "(" + player.getObjectId() + ") was cheating in dimension rift area!");
LOGGER.warning("Player " + player.getName() + "(" + player.getObjectId() + ") was cheating in dimension rift area!");
Util.handleIllegalPlayerAction(player, "Warning!! Character " + player.getName() + " tried to cheat in dimensional rift.", Config.DEFAULT_PUNISH);
}
}
@@ -35,7 +35,7 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
*/
public class FactionManager
{
private static Logger _log = Logger.getLogger(FactionManager.class.getName());
private static Logger LOGGER = Logger.getLogger(FactionManager.class.getName());
private final Map<Integer, Integer> _playerFactions = new ConcurrentHashMap<>();
protected FactionManager()
@@ -57,9 +57,9 @@ public class FactionManager
}
catch (SQLException e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Could not load character faction information: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Could not load character faction information: " + e.getMessage(), e);
}
_log.info(getClass().getSimpleName() + ": Loaded " + _playerFactions.size() + " character faction values.");
LOGGER.info(getClass().getSimpleName() + ": Loaded " + _playerFactions.size() + " character faction values.");
}
public final int getFactionByCharId(int id)
@@ -91,7 +91,7 @@ public class FactionManager
}
catch (SQLException e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Could not check existing char id: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Could not check existing char id: " + e.getMessage(), e);
}
return 0; // not found
@@ -43,7 +43,7 @@ import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
*/
public class FishingChampionshipManager
{
protected static final Logger _log = Logger.getLogger(FishingChampionshipManager.class.getName());
protected static final Logger LOGGER = Logger.getLogger(FishingChampionshipManager.class.getName());
private static final String INSERT = "INSERT INTO fishing_championship(player_name,fish_length,rewarded) VALUES (?,?,?)";
private static final String DELETE = "DELETE FROM fishing_championship";
@@ -120,7 +120,7 @@ public class FishingChampionshipManager
}
catch (SQLException e)
{
_log.log(Level.WARNING, "FishingChampionshipManager: can't restore fishing championship info: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "FishingChampionshipManager: can't restore fishing championship info: " + e.getMessage(), e);
}
}
@@ -384,7 +384,7 @@ public class FishingChampionshipManager
}
catch (SQLException e)
{
_log.log(Level.WARNING, "FishingChampionshipManager: can't update infos: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "FishingChampionshipManager: can't update infos: " + e.getMessage(), e);
}
}
@@ -470,7 +470,7 @@ public class FishingChampionshipManager
setEndOfChamp();
shutdown();
_log.info("FishingChampionshipManager : new event period start.");
LOGGER.info("FishingChampionshipManager : new event period start.");
ThreadPool.schedule(new finishChamp(), _enddate - System.currentTimeMillis());
}
}
@@ -32,7 +32,7 @@ import com.l2jmobius.gameserver.model.entity.Fort;
public final class FortManager implements InstanceListManager
{
protected static final Logger _log = Logger.getLogger(FortManager.class.getName());
protected static final Logger LOGGER = Logger.getLogger(FortManager.class.getName());
private final List<Fort> _forts = new ArrayList<>();
@@ -169,7 +169,7 @@ public final class FortManager implements InstanceListManager
_forts.add(new Fort(rs.getInt("id")));
}
_log.info(getClass().getSimpleName() + ": Loaded: " + _forts.size() + " fortress");
LOGGER.info(getClass().getSimpleName() + ": Loaded: " + _forts.size() + " fortress");
for (Fort fort : _forts)
{
fort.getSiege().getSiegeGuardManager().loadSiegeGuard();
@@ -177,7 +177,7 @@ public final class FortManager implements InstanceListManager
}
catch (Exception e)
{
_log.log(Level.WARNING, "Exception: loadFortData(): " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Exception: loadFortData(): " + e.getMessage(), e);
}
}
@@ -32,7 +32,7 @@ import com.l2jmobius.gameserver.model.entity.Fort;
public final class FortSiegeGuardManager
{
private static final Logger _log = Logger.getLogger(FortSiegeGuardManager.class.getName());
private static final Logger LOGGER = Logger.getLogger(FortSiegeGuardManager.class.getName());
private final Fort _fort;
private final Map<Integer, List<L2Spawn>> _siegeGuards = new HashMap<>();
@@ -68,7 +68,7 @@ public final class FortSiegeGuardManager
}
catch (Exception e)
{
_log.log(Level.WARNING, "Error spawning siege guards for fort " + getFort().getName() + ":" + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Error spawning siege guards for fort " + getFort().getName() + ":" + e.getMessage(), e);
}
}
@@ -94,7 +94,7 @@ public final class FortSiegeGuardManager
}
catch (Exception e)
{
_log.log(Level.WARNING, "Error unspawning siege guards for fort " + getFort().getName() + ":" + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Error unspawning siege guards for fort " + getFort().getName() + ":" + e.getMessage(), e);
}
}
@@ -130,7 +130,7 @@ public final class FortSiegeGuardManager
}
catch (Exception e)
{
_log.log(Level.WARNING, "Error loading siege guard for fort " + getFort().getName() + ": " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Error loading siege guard for fort " + getFort().getName() + ": " + e.getMessage(), e);
}
}
@@ -47,7 +47,7 @@ import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
public final class FortSiegeManager
{
private static final Logger _log = Logger.getLogger(FortSiegeManager.class.getName());
private static final Logger LOGGER = Logger.getLogger(FortSiegeManager.class.getName());
private int _attackerMaxClans = 500; // Max number of clans
@@ -102,7 +102,7 @@ public final class FortSiegeManager
}
catch (Exception e)
{
_log.log(Level.WARNING, "Exception: checkIsRegistered(): " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Exception: checkIsRegistered(): " + e.getMessage(), e);
}
return register;
}
@@ -123,7 +123,7 @@ public final class FortSiegeManager
}
catch (Exception e)
{
_log.log(Level.WARNING, "Error while loading Fort Siege Manager settings!", e);
LOGGER.log(Level.WARNING, "Error while loading Fort Siege Manager settings!", e);
}
// Siege setting
@@ -164,7 +164,7 @@ public final class FortSiegeManager
}
catch (Exception e)
{
_log.warning("Error while loading commander(s) for " + fort.getName() + " fort.");
LOGGER.warning("Error while loading commander(s) for " + fort.getName() + " fort.");
}
}
@@ -190,7 +190,7 @@ public final class FortSiegeManager
}
catch (Exception e)
{
_log.warning("Error while loading flag(s) for " + fort.getName() + " fort.");
LOGGER.warning("Error while loading flag(s) for " + fort.getName() + " fort.");
}
}
_flagList.put(fort.getResidenceId(), flagSpawns);
@@ -62,7 +62,7 @@ import com.l2jmobius.gameserver.util.Util;
*/
public final class FourSepulchersManager
{
private static final Logger _log = Logger.getLogger(FourSepulchersManager.class.getName());
private static final Logger LOGGER = Logger.getLogger(FourSepulchersManager.class.getName());
private static final int QUEST_ID = 620;
@@ -205,25 +205,25 @@ public final class FourSepulchersManager
{
clean();
_changeEntryTimeTask = ThreadPool.schedule(new FourSepulchersChangeEntryTimeTask(), 0);
_log.info(getClass().getSimpleName() + ": Beginning in Entry time");
LOGGER.info(getClass().getSimpleName() + ": Beginning in Entry time");
}
else if ((currentTime >= _entryTimeEnd) && (currentTime < _warmUpTimeEnd)) // warmup time check
{
clean();
_changeWarmUpTimeTask = ThreadPool.schedule(new FourSepulchersChangeWarmUpTimeTask(), 0);
_log.info(getClass().getSimpleName() + ": Beginning in WarmUp time");
LOGGER.info(getClass().getSimpleName() + ": Beginning in WarmUp time");
}
else if ((currentTime >= _warmUpTimeEnd) && (currentTime < _attackTimeEnd)) // attack time check
{
clean();
_changeAttackTimeTask = ThreadPool.schedule(new FourSepulchersChangeAttackTimeTask(), 0);
_log.info(getClass().getSimpleName() + ": Beginning in Attack time");
LOGGER.info(getClass().getSimpleName() + ": Beginning in Attack time");
}
else
// else cooldown time and without cleanup because it's already implemented
{
_changeCoolDownTimeTask = ThreadPool.schedule(new FourSepulchersChangeCoolDownTimeTask(), 0);
_log.info(getClass().getSimpleName() + ": Beginning in Cooldown time");
LOGGER.info(getClass().getSimpleName() + ": Beginning in Cooldown time");
}
}
@@ -316,11 +316,11 @@ public final class FourSepulchersManager
SpawnTable.getInstance().addNewSpawn(spawnDat, false);
spawnDat.doSpawn();
spawnDat.startRespawn();
_log.info(getClass().getSimpleName() + ": spawned " + spawnDat.getTemplate().getName());
LOGGER.info(getClass().getSimpleName() + ": spawned " + spawnDat.getTemplate().getName());
}
catch (Exception e)
{
_log.log(Level.WARNING, "Error while spawning managers: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Error while spawning managers: " + e.getMessage(), e);
}
}
}
@@ -432,12 +432,12 @@ public final class FourSepulchersManager
_mysteriousBoxSpawns.put(keyNpcId, spawnDat);
}
}
_log.info(getClass().getSimpleName() + ": loaded " + _mysteriousBoxSpawns.size() + " Mysterious-Box spawns.");
LOGGER.info(getClass().getSimpleName() + ": loaded " + _mysteriousBoxSpawns.size() + " Mysterious-Box spawns.");
}
catch (Exception e)
{
// problem with initializing spawn, go to next one
_log.log(Level.WARNING, "FourSepulchersManager.LoadMysteriousBox: Spawn could not be initialized: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "FourSepulchersManager.LoadMysteriousBox: Spawn could not be initialized: " + e.getMessage(), e);
}
}
@@ -459,7 +459,7 @@ public final class FourSepulchersManager
}
catch (Exception e)
{
_log.log(Level.WARNING, "FourSepulchersManager.InitKeyBoxSpawns: Spawn could not be initialized: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "FourSepulchersManager.InitKeyBoxSpawns: Spawn could not be initialized: " + e.getMessage(), e);
}
}
}
@@ -503,11 +503,11 @@ public final class FourSepulchersManager
_physicalMonsters.put(keyNpcId, _physicalSpawns);
}
}
_log.info(getClass().getSimpleName() + ": loaded " + loaded + " Physical type monsters spawns.");
LOGGER.info(getClass().getSimpleName() + ": loaded " + loaded + " Physical type monsters spawns.");
}
catch (Exception e)
{
_log.log(Level.WARNING, "FourSepulchersManager.LoadPhysicalMonsters: Spawn could not be initialized: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "FourSepulchersManager.LoadPhysicalMonsters: Spawn could not be initialized: " + e.getMessage(), e);
}
}
@@ -551,11 +551,11 @@ public final class FourSepulchersManager
_magicalMonsters.put(keyNpcId, _magicalSpawns);
}
}
_log.info(getClass().getSimpleName() + ": loaded " + loaded + " Magical type monsters spawns.");
LOGGER.info(getClass().getSimpleName() + ": loaded " + loaded + " Magical type monsters spawns.");
}
catch (Exception e)
{
_log.log(Level.WARNING, "FourSepulchersManager.LoadMagicalMonsters: Spawn could not be initialized: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "FourSepulchersManager.LoadMagicalMonsters: Spawn could not be initialized: " + e.getMessage(), e);
}
}
@@ -603,11 +603,11 @@ public final class FourSepulchersManager
_archonSpawned.put(keyNpcId, false);
}
}
_log.info(getClass().getSimpleName() + ": loaded " + loaded + " Church of duke monsters spawns.");
LOGGER.info(getClass().getSimpleName() + ": loaded " + loaded + " Church of duke monsters spawns.");
}
catch (Exception e)
{
_log.log(Level.WARNING, "FourSepulchersManager.LoadDukeMonsters: Spawn could not be initialized: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "FourSepulchersManager.LoadDukeMonsters: Spawn could not be initialized: " + e.getMessage(), e);
}
}
@@ -651,11 +651,11 @@ public final class FourSepulchersManager
_emperorsGraveNpcs.put(keyNpcId, _emperorsGraveSpawns);
}
}
_log.info(getClass().getSimpleName() + ": loaded " + loaded + " Emperor's grave NPC spawns.");
LOGGER.info(getClass().getSimpleName() + ": loaded " + loaded + " Emperor's grave NPC spawns.");
}
catch (Exception e)
{
_log.log(Level.WARNING, "FourSepulchersManager.LoadEmperorsGraveMonsters: Spawn could not be initialized: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "FourSepulchersManager.LoadEmperorsGraveMonsters: Spawn could not be initialized: " + e.getMessage(), e);
}
}
@@ -687,7 +687,7 @@ public final class FourSepulchersManager
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Error on InitLocationShadowSpawns", e);
LOGGER.log(Level.SEVERE, "Error on InitLocationShadowSpawns", e);
}
}
}
@@ -710,7 +710,7 @@ public final class FourSepulchersManager
}
catch (Exception e)
{
_log.log(Level.WARNING, "FourSepulchersManager.InitExecutionerSpawns: Spawn could not be initialized: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "FourSepulchersManager.InitExecutionerSpawns: Spawn could not be initialized: " + e.getMessage(), e);
}
}
}
@@ -845,7 +845,7 @@ public final class FourSepulchersManager
final Quest hostQuest = QuestManager.getInstance().getQuest(QUEST_ID);
if (hostQuest == null)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't find quest: " + QUEST_ID);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't find quest: " + QUEST_ID);
return;
}
final int npcId = npc.getId();
@@ -864,7 +864,7 @@ public final class FourSepulchersManager
{
if (!player.isGM())
{
_log.warning("Player " + player.getName() + "(" + player.getObjectId() + ") tried to cheat in four sepulchers.");
LOGGER.warning("Player " + player.getName() + "(" + player.getObjectId() + ") tried to cheat in four sepulchers.");
Util.handleIllegalPlayerAction(player, "Warning!! Character " + player.getName() + " tried to enter four sepulchers with invalid npc id.", Config.DEFAULT_PUNISH);
}
return;
@@ -1139,7 +1139,7 @@ public final class FourSepulchersManager
}
catch (Exception e)
{
_log.log(Level.WARNING, "FourSepulchersManager.SpawnMonster: Spawn could not be initialized: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "FourSepulchersManager.SpawnMonster: Spawn could not be initialized: " + e.getMessage(), e);
}
spawnedKeyBoxMob = true;
@@ -1375,7 +1375,7 @@ public final class FourSepulchersManager
}
catch (Exception e)
{
_log.log(Level.SEVERE, getClass().getSimpleName() + ": Failed deleting mob.", e);
LOGGER.log(Level.SEVERE, getClass().getSimpleName() + ": Failed deleting mob.", e);
}
}
_allMobs.clear();
@@ -1394,12 +1394,12 @@ public final class FourSepulchersManager
}
else
{
_log.warning(getClass().getSimpleName() + ": Attempted to close undefined door. doorId: " + doorId);
LOGGER.warning(getClass().getSimpleName() + ": Attempted to close undefined door. doorId: " + doorId);
}
}
catch (Exception e)
{
_log.log(Level.SEVERE, getClass().getSimpleName() + ": Failed closing door", e);
LOGGER.log(Level.SEVERE, getClass().getSimpleName() + ": Failed closing door", e);
}
}
}
@@ -1526,12 +1526,12 @@ public final class FourSepulchersManager
{
if (temp == null)
{
_log.warning(getClass().getSimpleName() + ": managerSay(): manager is null");
LOGGER.warning(getClass().getSimpleName() + ": managerSay(): manager is null");
continue;
}
if (!(temp.getLastSpawn() instanceof L2SepulcherNpcInstance))
{
_log.warning(getClass().getSimpleName() + ": managerSay(): manager is not Sepulcher instance");
LOGGER.warning(getClass().getSimpleName() + ": managerSay(): manager is not Sepulcher instance");
continue;
}
// hall not used right now, so its manager will not tell you anything :)
@@ -1553,12 +1553,12 @@ public final class FourSepulchersManager
{
if (temp == null)
{
_log.warning(getClass().getSimpleName() + ": Something goes wrong in managerSay()...");
LOGGER.warning(getClass().getSimpleName() + ": Something goes wrong in managerSay()...");
continue;
}
if (!(temp.getLastSpawn() instanceof L2SepulcherNpcInstance))
{
_log.warning(getClass().getSimpleName() + ": Something goes wrong in managerSay()...");
LOGGER.warning(getClass().getSimpleName() + ": Something goes wrong in managerSay()...");
continue;
}
((L2SepulcherNpcInstance) temp.getLastSpawn()).sayInShout(msg1);
@@ -34,7 +34,7 @@ import com.l2jmobius.gameserver.model.variables.AbstractVariables;
*/
public final class GlobalVariablesManager extends AbstractVariables
{
private static final Logger _log = Logger.getLogger(GlobalVariablesManager.class.getName());
private static final Logger LOGGER = Logger.getLogger(GlobalVariablesManager.class.getName());
// SQL Queries.
private static final String SELECT_QUERY = "SELECT * FROM global_variables";
@@ -61,14 +61,14 @@ public final class GlobalVariablesManager extends AbstractVariables
}
catch (SQLException e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't restore global variables");
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't restore global variables");
return false;
}
finally
{
compareAndSetChanges(true, false);
}
_log.log(Level.INFO, getClass().getSimpleName() + ": Loaded " + getSet().size() + " variables.");
LOGGER.log(Level.INFO, getClass().getSimpleName() + ": Loaded " + getSet().size() + " variables.");
return true;
}
@@ -99,14 +99,14 @@ public final class GlobalVariablesManager extends AbstractVariables
}
catch (SQLException e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't save global variables to database.", e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't save global variables to database.", e);
return false;
}
finally
{
compareAndSetChanges(true, false);
}
_log.log(Level.INFO, getClass().getSimpleName() + ": Stored " + getSet().size() + " variables.");
LOGGER.log(Level.INFO, getClass().getSimpleName() + ": Stored " + getSet().size() + " variables.");
return true;
}
@@ -56,7 +56,7 @@ public final class GrandBossManager implements IStorable
private static final String UPDATE_GRAND_BOSS_DATA = "UPDATE grandboss_data set loc_x = ?, loc_y = ?, loc_z = ?, heading = ?, respawn_time = ?, currentHP = ?, currentMP = ?, status = ? where boss_id = ?";
private static final String UPDATE_GRAND_BOSS_DATA2 = "UPDATE grandboss_data set status = ? where boss_id = ?";
protected static Logger _log = Logger.getLogger(GrandBossManager.class.getName());
protected static Logger LOGGER = Logger.getLogger(GrandBossManager.class.getName());
protected static final Map<Integer, L2GrandBossInstance> BOSSES = new ConcurrentHashMap<>();
@@ -93,21 +93,21 @@ public final class GrandBossManager implements IStorable
int status = rs.getInt("status");
_bossStatus.put(bossId, status);
_storedInfo.put(bossId, info);
_log.info(getClass().getSimpleName() + ": " + NpcData.getInstance().getTemplate(bossId).getName() + "(" + bossId + ") status is " + status + ".");
LOGGER.info(getClass().getSimpleName() + ": " + NpcData.getInstance().getTemplate(bossId).getName() + "(" + bossId + ") status is " + status + ".");
if (status > 0)
{
_log.info(getClass().getSimpleName() + ": Next spawn date of " + NpcData.getInstance().getTemplate(bossId).getName() + " is " + new Date(info.getLong("respawn_time")) + ".");
LOGGER.info(getClass().getSimpleName() + ": Next spawn date of " + NpcData.getInstance().getTemplate(bossId).getName() + " is " + new Date(info.getLong("respawn_time")) + ".");
}
}
_log.info(getClass().getSimpleName() + ": Loaded " + _storedInfo.size() + " Instances");
LOGGER.info(getClass().getSimpleName() + ": Loaded " + _storedInfo.size() + " Instances");
}
catch (SQLException e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Could not load grandboss_data table: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Could not load grandboss_data table: " + e.getMessage(), e);
}
catch (Exception e)
{
_log.log(Level.WARNING, "Error while initializing GrandBossManager: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Error while initializing GrandBossManager: " + e.getMessage(), e);
}
ThreadPool.scheduleAtFixedRate(new GrandBossManagerStoreTask(), 5 * 60 * 1000, 5 * 60 * 1000);
}
@@ -131,15 +131,15 @@ public final class GrandBossManager implements IStorable
{
zones.get(rs.getInt("zone")).add(rs.getInt("player_id"));
}
_log.info(getClass().getSimpleName() + ": Initialized " + _zones.size() + " Grand Boss Zones");
LOGGER.info(getClass().getSimpleName() + ": Initialized " + _zones.size() + " Grand Boss Zones");
}
catch (SQLException e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Could not load grandboss_list table: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Could not load grandboss_list table: " + e.getMessage(), e);
}
catch (Exception e)
{
_log.log(Level.WARNING, "Error while initializing GrandBoss zones: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Error while initializing GrandBoss zones: " + e.getMessage(), e);
}
for (Entry<Integer, L2BossZone> e : _zones.entrySet())
@@ -194,7 +194,7 @@ public final class GrandBossManager implements IStorable
public void setBossStatus(int bossId, int status)
{
_bossStatus.put(bossId, status);
_log.info(getClass().getSimpleName() + ": Updated " + NpcData.getInstance().getTemplate(bossId).getName() + "(" + bossId + ") status to " + status);
LOGGER.info(getClass().getSimpleName() + ": Updated " + NpcData.getInstance().getTemplate(bossId).getName() + "(" + bossId + ") status to " + status);
updateDb(bossId, true);
}
@@ -294,7 +294,7 @@ public final class GrandBossManager implements IStorable
}
catch (SQLException e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't store grandbosses to database:" + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't store grandbosses to database:" + e.getMessage(), e);
return false;
}
return true;
@@ -342,7 +342,7 @@ public final class GrandBossManager implements IStorable
}
catch (SQLException e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't update grandbosses to database:" + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't update grandbosses to database:" + e.getMessage(), e);
}
}
@@ -43,7 +43,7 @@ import com.l2jmobius.gameserver.model.itemauction.ItemAuctionInstance;
*/
public final class ItemAuctionManager
{
private static final Logger _log = Logger.getLogger(ItemAuctionManager.class.getName());
private static final Logger LOGGER = Logger.getLogger(ItemAuctionManager.class.getName());
private final Map<Integer, ItemAuctionInstance> _managerInstances = new HashMap<>();
private final AtomicInteger _auctionIds;
@@ -54,7 +54,7 @@ public final class ItemAuctionManager
if (!Config.ALT_ITEM_AUCTION_ENABLED)
{
_log.log(Level.INFO, getClass().getSimpleName() + ": Disabled by config.");
LOGGER.log(Level.INFO, getClass().getSimpleName() + ": Disabled by config.");
return;
}
@@ -69,13 +69,13 @@ public final class ItemAuctionManager
}
catch (SQLException e)
{
_log.log(Level.SEVERE, getClass().getSimpleName() + ": Failed loading auctions.", e);
LOGGER.log(Level.SEVERE, getClass().getSimpleName() + ": Failed loading auctions.", e);
}
final File file = new File(Config.DATAPACK_ROOT, "data/ItemAuctions.xml");
if (!file.exists())
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Missing ItemAuctions.xml!");
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Missing ItemAuctions.xml!");
return;
}
@@ -107,11 +107,11 @@ public final class ItemAuctionManager
}
}
}
_log.log(Level.INFO, getClass().getSimpleName() + ": Loaded " + _managerInstances.size() + " instance(s).");
LOGGER.log(Level.INFO, getClass().getSimpleName() + ": Loaded " + _managerInstances.size() + " instance(s).");
}
catch (Exception e)
{
_log.log(Level.SEVERE, getClass().getSimpleName() + ": Failed loading auctions from xml.", e);
LOGGER.log(Level.SEVERE, getClass().getSimpleName() + ": Failed loading auctions from xml.", e);
}
}
@@ -151,7 +151,7 @@ public final class ItemAuctionManager
}
catch (SQLException e)
{
_log.log(Level.SEVERE, "L2ItemAuctionManagerInstance: Failed deleting auction: " + auctionId, e);
LOGGER.log(Level.SEVERE, "L2ItemAuctionManagerInstance: Failed deleting auction: " + auctionId, e);
}
}
@@ -39,7 +39,7 @@ import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
*/
public final class ItemsOnGroundManager implements Runnable
{
private static final Logger _log = Logger.getLogger(ItemsOnGroundManager.class.getName());
private static final Logger LOGGER = Logger.getLogger(ItemsOnGroundManager.class.getName());
private final List<L2ItemInstance> _items = new CopyOnWriteArrayList<>();
@@ -88,7 +88,7 @@ public final class ItemsOnGroundManager implements Runnable
}
catch (Exception e)
{
_log.log(Level.SEVERE, getClass().getSimpleName() + ": Error while updating table ItemsOnGround " + e.getMessage(), e);
LOGGER.log(Level.SEVERE, getClass().getSimpleName() + ": Error while updating table ItemsOnGround " + e.getMessage(), e);
}
}
@@ -131,11 +131,11 @@ public final class ItemsOnGroundManager implements Runnable
}
}
}
_log.info(getClass().getSimpleName() + ": Loaded " + count + " items.");
LOGGER.info(getClass().getSimpleName() + ": Loaded " + count + " items.");
}
catch (Exception e)
{
_log.log(Level.SEVERE, getClass().getSimpleName() + ": Error while loading ItemsOnGround " + e.getMessage(), e);
LOGGER.log(Level.SEVERE, getClass().getSimpleName() + ": Error while loading ItemsOnGround " + e.getMessage(), e);
}
if (Config.EMPTY_DROPPED_ITEM_TABLE_AFTER_LOAD)
@@ -180,7 +180,7 @@ public final class ItemsOnGroundManager implements Runnable
}
catch (Exception e1)
{
_log.log(Level.SEVERE, getClass().getSimpleName() + ": Error while cleaning table ItemsOnGround " + e1.getMessage(), e1);
LOGGER.log(Level.SEVERE, getClass().getSimpleName() + ": Error while cleaning table ItemsOnGround " + e1.getMessage(), e1);
}
}
@@ -225,13 +225,13 @@ public final class ItemsOnGroundManager implements Runnable
}
catch (Exception e)
{
_log.log(Level.SEVERE, getClass().getSimpleName() + ": Error while inserting into table ItemsOnGround: " + e.getMessage(), e);
LOGGER.log(Level.SEVERE, getClass().getSimpleName() + ": Error while inserting into table ItemsOnGround: " + e.getMessage(), e);
}
}
}
catch (SQLException e)
{
_log.log(Level.SEVERE, getClass().getSimpleName() + ": SQL error while storing items on ground: " + e.getMessage(), e);
LOGGER.log(Level.SEVERE, getClass().getSimpleName() + ": SQL error while storing items on ground: " + e.getMessage(), e);
}
}
@@ -43,7 +43,7 @@ import com.l2jmobius.gameserver.network.serverpackets.ExNoticePostArrived;
*/
public final class MailManager
{
private static final Logger _log = Logger.getLogger(MailManager.class.getName());
private static final Logger LOGGER = Logger.getLogger(MailManager.class.getName());
private final Map<Integer, Message> _messages = new ConcurrentHashMap<>();
@@ -82,9 +82,9 @@ public final class MailManager
}
catch (SQLException e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Error loading from database:" + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Error loading from database:" + e.getMessage(), e);
}
_log.info(getClass().getSimpleName() + ": Successfully loaded " + count + " messages.");
LOGGER.info(getClass().getSimpleName() + ": Successfully loaded " + count + " messages.");
}
public final Message getMessage(int msgId)
@@ -172,7 +172,7 @@ public final class MailManager
}
catch (SQLException e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Error saving message:" + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Error saving message:" + e.getMessage(), e);
}
final L2PcInstance receiver = L2World.getInstance().getPlayer(msg.getReceiverId());
@@ -194,7 +194,7 @@ public final class MailManager
}
catch (SQLException e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Error marking as read message:" + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Error marking as read message:" + e.getMessage(), e);
}
}
@@ -208,7 +208,7 @@ public final class MailManager
}
catch (SQLException e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Error marking as deleted by sender message:" + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Error marking as deleted by sender message:" + e.getMessage(), e);
}
}
@@ -222,7 +222,7 @@ public final class MailManager
}
catch (SQLException e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Error marking as deleted by receiver message:" + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Error marking as deleted by receiver message:" + e.getMessage(), e);
}
}
@@ -236,7 +236,7 @@ public final class MailManager
}
catch (SQLException e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Error removing attachments in message:" + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Error removing attachments in message:" + e.getMessage(), e);
}
}
@@ -250,7 +250,7 @@ public final class MailManager
}
catch (SQLException e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Error deleting message:" + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Error deleting message:" + e.getMessage(), e);
}
_messages.remove(msgId);
@@ -44,7 +44,7 @@ import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
*/
public final class MercTicketManager
{
private static final Logger _log = Logger.getLogger(MercTicketManager.class.getName());
private static final Logger LOGGER = Logger.getLogger(MercTicketManager.class.getName());
private static final List<L2ItemInstance> DROPPED_TICKETS = new CopyOnWriteArrayList<>();
@@ -200,11 +200,11 @@ public final class MercTicketManager
rs.close();
s.close();
_log.info(getClass().getSimpleName() + ": Loaded: " + DROPPED_TICKETS.size() + " Mercenary Tickets");
LOGGER.info(getClass().getSimpleName() + ": Loaded: " + DROPPED_TICKETS.size() + " Mercenary Tickets");
}
catch (Exception e)
{
_log.log(Level.WARNING, "Exception: loadMercenaryData(): " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Exception: loadMercenaryData(): " + e.getMessage(), e);
}
}
@@ -39,7 +39,7 @@ import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
*/
public final class PetitionManager
{
protected static final Logger _log = Logger.getLogger(PetitionManager.class.getName());
protected static final Logger LOGGER = Logger.getLogger(PetitionManager.class.getName());
private final Map<Integer, Petition> _pendingPetitions;
private final Map<Integer, Petition> _completedPetitions;
@@ -55,7 +55,7 @@ public final class PetitionManager
final int numPetitions = getPendingPetitionCount();
getCompletedPetitions().clear();
_log.info(getClass().getSimpleName() + ": Completed petition data cleared. " + numPetitions + " petition(s) removed.");
LOGGER.info(getClass().getSimpleName() + ": Completed petition data cleared. " + numPetitions + " petition(s) removed.");
}
public void clearPendingPetitions()
@@ -63,7 +63,7 @@ public final class PetitionManager
final int numPetitions = getPendingPetitionCount();
getPendingPetitions().clear();
_log.info(getClass().getSimpleName() + ": Pending petition queue cleared. " + numPetitions + " petition(s) removed.");
LOGGER.info(getClass().getSimpleName() + ": Pending petition queue cleared. " + numPetitions + " petition(s) removed.");
}
public boolean acceptPetition(L2PcInstance respondingAdmin, int petitionId)
@@ -35,7 +35,7 @@ import com.l2jmobius.gameserver.model.punishment.PunishmentType;
*/
public final class PunishmentManager
{
private static final Logger _log = Logger.getLogger(PunishmentManager.class.getName());
private static final Logger LOGGER = Logger.getLogger(PunishmentManager.class.getName());
private final Map<PunishmentAffect, PunishmentHolder> _tasks = new ConcurrentHashMap<>();
@@ -83,10 +83,10 @@ public final class PunishmentManager
}
catch (Exception e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Error while loading punishments: ", e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Error while loading punishments: ", e);
}
_log.log(Level.INFO, getClass().getSimpleName() + ": Loaded " + initiated + " active and " + expired + " expired punishments.");
LOGGER.log(Level.INFO, getClass().getSimpleName() + ": Loaded " + initiated + " active and " + expired + " expired punishments.");
}
public void startPunishment(PunishmentTask task)
@@ -40,7 +40,7 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
*/
public class RaidBossPointsManager
{
private static final Logger _log = Logger.getLogger(RaidBossPointsManager.class.getName());
private static final Logger LOGGER = Logger.getLogger(RaidBossPointsManager.class.getName());
private final Map<Integer, Map<Integer, Integer>> _list = new ConcurrentHashMap<>();
@@ -68,11 +68,11 @@ public class RaidBossPointsManager
values.put(bossId, points);
_list.put(charId, values);
}
_log.info(getClass().getSimpleName() + ": Loaded " + _list.size() + " Characters Raid Points.");
LOGGER.info(getClass().getSimpleName() + ": Loaded " + _list.size() + " Characters Raid Points.");
}
catch (SQLException e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Couldnt load raid points ", e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldnt load raid points ", e);
}
}
@@ -88,7 +88,7 @@ public class RaidBossPointsManager
}
catch (Exception e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't update char raid points for player: " + player, e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't update char raid points for player: " + player, e);
}
}
@@ -130,7 +130,7 @@ public class RaidBossPointsManager
}
catch (Exception e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't clean raid points", e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't clean raid points", e);
}
}
@@ -43,7 +43,7 @@ import com.l2jmobius.gameserver.model.actor.instance.L2RaidBossInstance;
*/
public class RaidBossSpawnManager
{
private static final Logger _log = Logger.getLogger(RaidBossSpawnManager.class.getName());
private static final Logger LOGGER = Logger.getLogger(RaidBossSpawnManager.class.getName());
protected static final Map<Integer, L2RaidBossInstance> _bosses = new ConcurrentHashMap<>();
protected static final Map<Integer, L2Spawn> _spawns = new ConcurrentHashMap<>();
@@ -92,22 +92,22 @@ public class RaidBossSpawnManager
addNewSpawn(spawnDat, rs.getLong("respawn_time"), rs.getDouble("currentHP"), rs.getDouble("currentMP"), false);
}
_log.info(getClass().getSimpleName() + ": Loaded " + _bosses.size() + " Instances");
_log.info(getClass().getSimpleName() + ": Scheduled " + _schedules.size() + " Instances");
LOGGER.info(getClass().getSimpleName() + ": Loaded " + _bosses.size() + " Instances");
LOGGER.info(getClass().getSimpleName() + ": Scheduled " + _schedules.size() + " Instances");
}
catch (SQLException e)
{
_log.warning(getClass().getSimpleName() + ": Couldnt load raidboss_spawnlist table");
LOGGER.warning(getClass().getSimpleName() + ": Couldnt load raidboss_spawnlist table");
}
catch (Exception e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Error while initializing RaidBossSpawnManager: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Error while initializing RaidBossSpawnManager: " + e.getMessage(), e);
}
}
private static class SpawnSchedule implements Runnable
{
private static final Logger _log = Logger.getLogger(SpawnSchedule.class.getName());
private static final Logger LOGGER = Logger.getLogger(SpawnSchedule.class.getName());
private final int bossId;
@@ -145,7 +145,7 @@ public class RaidBossSpawnManager
_storedInfo.put(bossId, info);
_log.info(getClass().getSimpleName() + ": Spawning Raid Boss " + raidboss.getName());
LOGGER.info(getClass().getSimpleName() + ": Spawning Raid Boss " + raidboss.getName());
_bosses.put(bossId, raidboss);
}
@@ -184,7 +184,7 @@ public class RaidBossSpawnManager
{
final Calendar time = Calendar.getInstance();
time.setTimeInMillis(respawnTime);
_log.info(getClass().getSimpleName() + ": Updated " + boss.getName() + " respawn time to " + time.getTime());
LOGGER.info(getClass().getSimpleName() + ": Updated " + boss.getName() + " respawn time to " + time.getTime());
_schedules.put(boss.getId(), ThreadPool.schedule(new SpawnSchedule(boss.getId()), respawnDelay));
updateDb();
@@ -266,7 +266,7 @@ public class RaidBossSpawnManager
catch (Exception e)
{
// problem with storing spawn
_log.log(Level.WARNING, getClass().getSimpleName() + ": Could not store raidboss #" + bossId + " in the DB:" + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Could not store raidboss #" + bossId + " in the DB:" + e.getMessage(), e);
}
}
}
@@ -318,7 +318,7 @@ public class RaidBossSpawnManager
catch (Exception e)
{
// problem with deleting spawn
_log.log(Level.WARNING, getClass().getSimpleName() + ": Could not remove raidboss #" + bossId + " from DB: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Could not remove raidboss #" + bossId + " from DB: " + e.getMessage(), e);
}
}
}
@@ -369,13 +369,13 @@ public class RaidBossSpawnManager
}
catch (SQLException e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Couldnt update raidboss_spawnlist table " + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldnt update raidboss_spawnlist table " + e.getMessage(), e);
}
}
}
catch (SQLException e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": SQL error while updating RaidBoss spawn to database: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": SQL error while updating RaidBoss spawn to database: " + e.getMessage(), e);
}
}
@@ -465,7 +465,7 @@ public class RaidBossSpawnManager
_storedInfo.put(raidboss.getId(), info);
_log.info(getClass().getSimpleName() + ": Spawning Night Raid Boss " + raidboss.getName());
LOGGER.info(getClass().getSimpleName() + ": Spawning Night Raid Boss " + raidboss.getName());
_bosses.put(raidboss.getId(), raidboss);
}
@@ -29,7 +29,7 @@ import com.l2jmobius.gameserver.Shutdown;
*/
public class ServerRestartManager
{
static final Logger _log = Logger.getLogger(ServerRestartManager.class.getName());
static final Logger LOGGER = Logger.getLogger(ServerRestartManager.class.getName());
private String nextRestartTime = "unknown";
@@ -72,12 +72,12 @@ public class ServerRestartManager
{
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
ThreadPool.schedule(new ServerRestartTask(), lastDelay - (Config.SERVER_RESTART_SCHEDULE_COUNTDOWN * 1000));
_log.info("Scheduled server restart at " + lastRestart.getTime() + ".");
LOGGER.info("Scheduled server restart at " + lastRestart.getTime() + ".");
}
}
catch (Exception e)
{
_log.info("The scheduled server restart config is not set properly, please correct it!");
LOGGER.info("The scheduled server restart config is not set properly, please correct it!");
}
}
@@ -31,7 +31,7 @@ import com.l2jmobius.gameserver.model.entity.Castle;
public final class SiegeGuardManager
{
private static Logger _log = Logger.getLogger(SiegeGuardManager.class.getName());
private static Logger LOGGER = Logger.getLogger(SiegeGuardManager.class.getName());
private final Castle _castle;
private final List<L2Spawn> _siegeGuardSpawn = new ArrayList<>();
@@ -115,7 +115,7 @@ public final class SiegeGuardManager
}
catch (Exception e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Error deleting hired siege guard at " + x + ',' + y + ',' + z + ": " + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Error deleting hired siege guard at " + x + ',' + y + ',' + z + ": " + e.getMessage(), e);
}
}
@@ -132,7 +132,7 @@ public final class SiegeGuardManager
}
catch (Exception e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Error deleting hired siege guard for castle " + getCastle().getName() + ": " + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Error deleting hired siege guard for castle " + getCastle().getName() + ": " + e.getMessage(), e);
}
}
@@ -165,7 +165,7 @@ public final class SiegeGuardManager
}
catch (Exception e)
{
_log.log(Level.SEVERE, getClass().getSimpleName() + ": Error spawning siege guards for castle " + getCastle().getName(), e);
LOGGER.log(Level.SEVERE, getClass().getSimpleName() + ": Error spawning siege guards for castle " + getCastle().getName(), e);
}
}
@@ -215,7 +215,7 @@ public final class SiegeGuardManager
}
catch (Exception e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Error loading siege guard for castle " + getCastle().getName() + ": " + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Error loading siege guard for castle " + getCastle().getName() + ": " + e.getMessage(), e);
}
}
@@ -245,7 +245,7 @@ public final class SiegeGuardManager
}
catch (Exception e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Error adding siege guard for castle " + getCastle().getName() + ": " + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Error adding siege guard for castle " + getCastle().getName() + ": " + e.getMessage(), e);
}
}
@@ -43,7 +43,7 @@ import com.l2jmobius.gameserver.model.skills.Skill;
public final class SiegeManager
{
private static final Logger _log = Logger.getLogger(SiegeManager.class.getName());
private static final Logger LOGGER = Logger.getLogger(SiegeManager.class.getName());
private final Map<Integer, List<TowerSpawn>> _controlTowers = new HashMap<>();
private final Map<Integer, List<TowerSpawn>> _flameTowers = new HashMap<>();
@@ -103,7 +103,7 @@ public final class SiegeManager
}
catch (Exception e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Exception: checkIsRegistered(): " + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Exception: checkIsRegistered(): " + e.getMessage(), e);
}
return register;
}
@@ -152,7 +152,7 @@ public final class SiegeManager
}
catch (Exception e)
{
_log.warning(getClass().getSimpleName() + ": Error while loading control tower(s) for " + castle.getName() + " castle.");
LOGGER.warning(getClass().getSimpleName() + ": Error while loading control tower(s) for " + castle.getName() + " castle.");
}
}
@@ -183,7 +183,7 @@ public final class SiegeManager
}
catch (Exception e)
{
_log.warning(getClass().getSimpleName() + ": Error while loading flame tower(s) for " + castle.getName() + " castle.");
LOGGER.warning(getClass().getSimpleName() + ": Error while loading flame tower(s) for " + castle.getName() + " castle.");
}
}
_controlTowers.put(castle.getResidenceId(), controlTowers);
@@ -290,7 +290,7 @@ public final class SiegeManager
}
catch (Exception e)
{
_log.log(Level.WARNING, "Exception: loadTrapUpgrade(): " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Exception: loadTrapUpgrade(): " + e.getMessage(), e);
}
}
@@ -26,7 +26,7 @@ import com.l2jmobius.gameserver.model.quest.Quest;
public final class SoDManager
{
private static final Logger _log = Logger.getLogger(SoDManager.class.getName());
private static final Logger LOGGER = Logger.getLogger(SoDManager.class.getName());
public static String ENERGY_SEEDS = "EnergySeeds";
@@ -44,7 +44,7 @@ public final class SoDManager
_SoDLastStateChangeDate = Calendar.getInstance();
loadData();
handleSodStages();
_log.info("Seed of Destruction Manager: Loaded. Current stage is: " + getSoDState());
LOGGER.info("Seed of Destruction Manager: Loaded. Current stage is: " + getSoDState());
}
public void saveData(byte seedType)
@@ -71,7 +71,7 @@ public final class SoDManager
}
default:
{
_log.warning(getClass().getSimpleName() + ": Unknown SeedType in SaveData: " + seedType);
LOGGER.warning(getClass().getSimpleName() + ": Unknown SeedType in SaveData: " + seedType);
break;
}
}
@@ -125,7 +125,7 @@ public final class SoDManager
}
default:
{
_log.warning(getClass().getSimpleName() + ": Unknown Seed of Destruction state(" + _SoDState + ")! ");
LOGGER.warning(getClass().getSimpleName() + ": Unknown Seed of Destruction state(" + _SoDState + ")! ");
}
}
}
@@ -135,7 +135,7 @@ public final class SoDManager
final Quest quest = QuestManager.getInstance().getQuest(ENERGY_SEEDS);
if (quest == null)
{
_log.warning(getClass().getSimpleName() + ": missing EnergySeeds Quest!");
LOGGER.warning(getClass().getSimpleName() + ": missing EnergySeeds Quest!");
}
else
{
@@ -156,7 +156,7 @@ public final class SoDManager
final Quest esQuest = QuestManager.getInstance().getQuest(ENERGY_SEEDS);
if (esQuest == null)
{
_log.warning(getClass().getSimpleName() + ": missing EnergySeeds Quest!");
LOGGER.warning(getClass().getSimpleName() + ": missing EnergySeeds Quest!");
}
else
{
@@ -172,7 +172,7 @@ public final class SoDManager
public void setSoDState(int value, boolean doSave)
{
_log.info(getClass().getSimpleName() + ": New Seed of Destruction state -> " + value + ".");
LOGGER.info(getClass().getSimpleName() + ": New Seed of Destruction state -> " + value + ".");
_SoDLastStateChangeDate.setTimeInMillis(System.currentTimeMillis());
_SoDState = value;
// reset number of Tiat kills
@@ -28,7 +28,7 @@ import com.l2jmobius.gameserver.util.Util;
public class SoIManager
{
protected static final Logger _log = Logger.getLogger(SoIManager.class.getName());
protected static final Logger LOGGER = Logger.getLogger(SoIManager.class.getName());
private static final long SOI_OPEN_TIME = 24 * 60 * 60 * 1000L;
@@ -61,7 +61,7 @@ public class SoIManager
{
openSeed(getOpenedTime());
}
_log.info("Seed of Infinity Manager: Loaded. Current stage is: " + getCurrentStage());
LOGGER.info("Seed of Infinity Manager: Loaded. Current stage is: " + getCurrentStage());
}
public static int getCurrentStage()
@@ -97,7 +97,7 @@ public class SoIManager
setEkimusCount(0);
setHoEDefCount(0);
checkStageAndSpawn();
_log.info("Seed of Infinity Manager: Set to stage " + stage);
LOGGER.info("Seed of Infinity Manager: Set to stage " + stage);
}
public static boolean isSeedOpen()
@@ -112,7 +112,7 @@ public class SoIManager
return;
}
GlobalVariablesManager.getInstance().set("SoI_opened", (System.currentTimeMillis() + time) / 1000L);
_log.info("Seed of Infinity Manager: Opening the seed for " + Util.formatTime((int) time / 1000));
LOGGER.info("Seed of Infinity Manager: Opening the seed for " + Util.formatTime((int) time / 1000));
spawnOpenedSeed();
DoorData.getInstance().getDoor(14240102).openMe();
@@ -125,7 +125,7 @@ public class SoIManager
public static void closeSeed()
{
_log.info("Seed of Infinity Manager: Closing the seed.");
LOGGER.info("Seed of Infinity Manager: Closing the seed.");
GlobalVariablesManager.getInstance().remove("SoI_opened");
// EnergySeeds.SoiSeedStop();
DoorData.getInstance().getDoor(14240102).closeMe();
@@ -63,7 +63,7 @@ import com.l2jmobius.gameserver.util.Util;
public final class TerritoryWarManager implements Siegable
{
private static final Logger _log = Logger.getLogger(TerritoryWarManager.class.getName());
private static final Logger LOGGER = Logger.getLogger(TerritoryWarManager.class.getName());
// SQL
private static final String DELETE = "DELETE FROM territory_registrations WHERE castleId = ? and registeredId = ?";
@@ -453,7 +453,7 @@ public final class TerritoryWarManager implements Siegable
}
else
{
_log.warning(getClass().getSimpleName() + ": Missing territory for new Ward owner: " + newOwnerId + ";" + territoryId);
LOGGER.warning(getClass().getSimpleName() + ": Missing territory for new Ward owner: " + newOwnerId + ";" + territoryId);
}
return ret;
}
@@ -743,7 +743,7 @@ public final class TerritoryWarManager implements Siegable
}
catch (Exception e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": " + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": " + e.getMessage(), e);
}
return null;
}
@@ -760,7 +760,7 @@ public final class TerritoryWarManager implements Siegable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Exception: Territory War registration: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Exception: Territory War registration: " + e.getMessage(), e);
}
}
@@ -781,7 +781,7 @@ public final class TerritoryWarManager implements Siegable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Exception: Territory Data update: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Exception: Territory Data update: " + e.getMessage(), e);
}
}
@@ -832,14 +832,14 @@ public final class TerritoryWarManager implements Siegable
}
default:
{
_log.warning(getClass().getSimpleName() + ": Unknown npc type for " + rs.getInt("id"));
LOGGER.warning(getClass().getSimpleName() + ": Unknown npc type for " + rs.getInt("id"));
}
}
}
}
catch (Exception e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": SpawnList error: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": SpawnList error: " + e.getMessage(), e);
}
try (Connection con = DatabaseFactory.getInstance().getConnection();
@@ -877,7 +877,7 @@ public final class TerritoryWarManager implements Siegable
}
catch (Exception e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": territory list error(): " + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": territory list error(): " + e.getMessage(), e);
}
try (Connection con = DatabaseFactory.getInstance().getConnection();
@@ -908,7 +908,7 @@ public final class TerritoryWarManager implements Siegable
}
catch (Exception e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": registration list error: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": registration list error: " + e.getMessage(), e);
}
}
@@ -916,7 +916,7 @@ public final class TerritoryWarManager implements Siegable
{
if (_territoryList == null)
{
_log.warning(getClass().getSimpleName() + ": TerritoryList is NULL!");
LOGGER.warning(getClass().getSimpleName() + ": TerritoryList is NULL!");
return;
}
final List<Territory> activeTerritoryList = new LinkedList<>();
@@ -932,7 +932,7 @@ public final class TerritoryWarManager implements Siegable
}
else
{
_log.warning(getClass().getSimpleName() + ": Castle missing! CastleId: " + t.getCastleId());
LOGGER.warning(getClass().getSimpleName() + ": Castle missing! CastleId: " + t.getCastleId());
}
}
@@ -963,7 +963,7 @@ public final class TerritoryWarManager implements Siegable
}
else
{
_log.warning(getClass().getSimpleName() + ": Castle missing! CastleId: " + t.getCastleId());
LOGGER.warning(getClass().getSimpleName() + ": Castle missing! CastleId: " + t.getCastleId());
}
if (fort != null)
{
@@ -975,7 +975,7 @@ public final class TerritoryWarManager implements Siegable
}
else
{
_log.warning(getClass().getSimpleName() + ": Fort missing! FortId: " + t.getFortId());
LOGGER.warning(getClass().getSimpleName() + ": Fort missing! FortId: " + t.getFortId());
}
for (TerritoryNPCSpawn ward : t.getOwnedWard())
{
@@ -1015,7 +1015,7 @@ public final class TerritoryWarManager implements Siegable
_isTWInProgress = false;
if (_territoryList == null)
{
_log.warning(getClass().getSimpleName() + ": TerritoryList is NULL!");
LOGGER.warning(getClass().getSimpleName() + ": TerritoryList is NULL!");
return;
}
final List<Territory> activeTerritoryList = new LinkedList<>();
@@ -1031,7 +1031,7 @@ public final class TerritoryWarManager implements Siegable
}
else
{
_log.warning(getClass().getSimpleName() + ": Castle missing! CastleId: " + t.getCastleId());
LOGGER.warning(getClass().getSimpleName() + ": Castle missing! CastleId: " + t.getCastleId());
}
}
@@ -1067,7 +1067,7 @@ public final class TerritoryWarManager implements Siegable
}
else
{
_log.warning(getClass().getSimpleName() + ": Castle missing! CastleId: " + t.getCastleId());
LOGGER.warning(getClass().getSimpleName() + ": Castle missing! CastleId: " + t.getCastleId());
}
if (fort != null)
@@ -1079,7 +1079,7 @@ public final class TerritoryWarManager implements Siegable
}
else
{
_log.warning(getClass().getSimpleName() + ": Fort missing! FortId: " + t.getFortId());
LOGGER.warning(getClass().getSimpleName() + ": Fort missing! FortId: " + t.getFortId());
}
if (t.getHQ() != null)
@@ -1132,7 +1132,7 @@ public final class TerritoryWarManager implements Siegable
final Quest twQuest = QuestManager.getInstance().getQuest(qn);
if (twQuest == null)
{
_log.warning(getClass().getSimpleName() + ": missing main Quest!");
LOGGER.warning(getClass().getSimpleName() + ": missing main Quest!");
return false;
}
for (int castleId : _registeredClans.keySet())
@@ -1255,7 +1255,7 @@ public final class TerritoryWarManager implements Siegable
protected class ScheduleStartTWTask implements Runnable
{
private final Logger _log = Logger.getLogger(ScheduleStartTWTask.class.getName());
private final Logger LOGGER = Logger.getLogger(ScheduleStartTWTask.class.getName());
@Override
public void run()
@@ -1323,14 +1323,14 @@ public final class TerritoryWarManager implements Siegable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "", e);
LOGGER.log(Level.SEVERE, "", e);
}
}
}
private class ScheduleEndTWTask implements Runnable
{
private final Logger _log = Logger.getLogger(ScheduleEndTWTask.class.getName());
private final Logger LOGGER = Logger.getLogger(ScheduleEndTWTask.class.getName());
protected ScheduleEndTWTask()
{
@@ -1387,7 +1387,7 @@ public final class TerritoryWarManager implements Siegable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "", e);
LOGGER.log(Level.SEVERE, "", e);
}
}
}
@@ -1515,7 +1515,7 @@ public final class TerritoryWarManager implements Siegable
public class Territory
{
private final Logger _log = Logger.getLogger(Territory.class.getName());
private final Logger LOGGER = Logger.getLogger(Territory.class.getName());
private final int _territoryId;
private final int _castleId; // territory Castle
@@ -1556,20 +1556,20 @@ public final class TerritoryWarManager implements Siegable
return _territoryWardSpawnPlace;
}
}
_log.log(Level.WARNING, getClass().getSimpleName() + ": no free Ward spawn found for territory: " + _territoryId);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": no free Ward spawn found for territory: " + _territoryId);
for (int i = 0; i < _territoryWardSpawnPlaces.length; i++)
{
if (_territoryWardSpawnPlaces[i] == null)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": territory ward spawn place " + i + " is null!");
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": territory ward spawn place " + i + " is null!");
}
else if (_territoryWardSpawnPlaces[i].getNpc() != null)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": territory ward spawn place " + i + " has npc name: " + _territoryWardSpawnPlaces[i].getNpc().getName());
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": territory ward spawn place " + i + " has npc name: " + _territoryWardSpawnPlaces[i].getNpc().getName());
}
else
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": territory ward spawn place " + i + " is empty!");
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": territory ward spawn place " + i + " is empty!");
}
}
return null;
@@ -1584,7 +1584,7 @@ public final class TerritoryWarManager implements Siegable
{
if ((type < 0) || (type > 3))
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": wrong type(" + type + ") for NPCs spawn change!");
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": wrong type(" + type + ") for NPCs spawn change!");
return;
}
for (TerritoryNPCSpawn twSpawn : _spawnList)
@@ -1621,7 +1621,7 @@ public final class TerritoryWarManager implements Siegable
return;
}
}
_log.log(Level.WARNING, getClass().getSimpleName() + ": Can't delete wardId: " + wardId + " for territory: " + _territoryId);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Can't delete wardId: " + wardId + " for territory: " + _territoryId);
}
public int getTerritoryId()
@@ -39,7 +39,7 @@ public class Lottery
public static final long SECOND = 1000;
public static final long MINUTE = 60000;
protected static final Logger _log = Logger.getLogger(Lottery.class.getName());
protected static final Logger LOGGER = Logger.getLogger(Lottery.class.getName());
private static final String INSERT_LOTTERY = "INSERT INTO games(id, idnr, enddate, prize, newprize) VALUES (?, ?, ?, ?, ?)";
private static final String UPDATE_PRICE = "UPDATE games SET prize=?, newprize=? WHERE id = 1 AND idnr = ?";
@@ -101,7 +101,7 @@ public class Lottery
}
catch (SQLException e)
{
_log.log(Level.WARNING, "Lottery: Could not increase current lottery prize: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Lottery: Could not increase current lottery prize: " + e.getMessage(), e);
}
}
@@ -166,7 +166,7 @@ public class Lottery
}
catch (SQLException e)
{
_log.log(Level.WARNING, "Lottery: Could not restore lottery data: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Lottery: Could not restore lottery data: " + e.getMessage(), e);
}
_isSellingTickets = true;
@@ -206,7 +206,7 @@ public class Lottery
}
catch (SQLException e)
{
_log.log(Level.WARNING, "Lottery: Could not store new lottery data: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Lottery: Could not store new lottery data: " + e.getMessage(), e);
}
}
}
@@ -340,7 +340,7 @@ public class Lottery
}
catch (SQLException e)
{
_log.log(Level.WARNING, "Lottery: Could restore lottery data: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Lottery: Could restore lottery data: " + e.getMessage(), e);
}
final long prize4 = count4 * Config.ALT_LOTTERY_2_AND_1_NUMBER_PRIZE;
@@ -397,7 +397,7 @@ public class Lottery
}
catch (SQLException e)
{
_log.log(Level.WARNING, "Lottery: Could not store finished lottery data: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Lottery: Could not store finished lottery data: " + e.getMessage(), e);
}
ThreadPool.schedule(new startLottery(), MINUTE);
@@ -521,7 +521,7 @@ public class Lottery
}
catch (SQLException e)
{
_log.log(Level.WARNING, "Lottery: Could not check lottery ticket #" + id + ": " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Lottery: Could not check lottery ticket #" + id + ": " + e.getMessage(), e);
}
return res;
}
@@ -32,7 +32,7 @@ import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
*/
public final class MessageDeletionTask implements Runnable
{
private static final Logger _log = Logger.getLogger(MessageDeletionTask.class.getName());
private static final Logger LOGGER = Logger.getLogger(MessageDeletionTask.class.getName());
final int _msgId;
@@ -76,7 +76,7 @@ public final class MessageDeletionTask implements Runnable
}
catch (Exception e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Error returning items:" + e.getMessage(), e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Error returning items:" + e.getMessage(), e);
}
}
MailManager.getInstance().deleteMessageInDb(msg.getId());
@@ -62,7 +62,7 @@ import com.l2jmobius.gameserver.util.Broadcast;
*/
public class AutoSpawnHandler
{
protected static final Logger _log = Logger.getLogger(AutoSpawnHandler.class.getName());
protected static final Logger LOGGER = Logger.getLogger(AutoSpawnHandler.class.getName());
private static final int DEFAULT_INITIAL_SPAWN = 30000; // 30 seconds after registration
private static final int DEFAULT_RESPAWN = 3600000; // 1 hour in millisecs
@@ -149,7 +149,7 @@ public class AutoSpawnHandler
}
catch (Exception e)
{
_log.log(Level.WARNING, "AutoSpawnHandler: Could not restore spawn data: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "AutoSpawnHandler: Could not restore spawn data: " + e.getMessage(), e);
}
}
@@ -235,7 +235,7 @@ public class AutoSpawnHandler
}
catch (Exception e)
{
_log.log(Level.WARNING, "AutoSpawnHandler: Could not auto spawn for NPC ID " + spawnInst._npcId + " (Object ID = " + spawnInst._objectId + "): " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "AutoSpawnHandler: Could not auto spawn for NPC ID " + spawnInst._npcId + " (Object ID = " + spawnInst._objectId + "): " + e.getMessage(), e);
return false;
}
@@ -416,7 +416,7 @@ public class AutoSpawnHandler
// If there are no set co-ordinates, cancel the spawn task.
if (locationList.length == 0)
{
_log.info("AutoSpawnHandler: No location co-ords specified for spawn instance (Object ID = " + _objectId + ").");
LOGGER.info("AutoSpawnHandler: No location co-ords specified for spawn instance (Object ID = " + _objectId + ").");
return;
}
@@ -494,7 +494,7 @@ public class AutoSpawnHandler
}
catch (Exception e)
{
_log.log(Level.WARNING, "AutoSpawnHandler: An error occurred while initializing spawn instance (Object ID = " + _objectId + "): " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "AutoSpawnHandler: An error occurred while initializing spawn instance (Object ID = " + _objectId + "): " + e.getMessage(), e);
}
}
}
@@ -522,7 +522,7 @@ public class AutoSpawnHandler
if (spawnInst == null)
{
_log.info("AutoSpawnHandler: No spawn registered for object ID = " + _objectId + ".");
LOGGER.info("AutoSpawnHandler: No spawn registered for object ID = " + _objectId + ".");
return;
}
@@ -540,7 +540,7 @@ public class AutoSpawnHandler
}
catch (Exception e)
{
_log.log(Level.WARNING, "AutoSpawnHandler: An error occurred while despawning spawn (Object ID = " + _objectId + "): " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "AutoSpawnHandler: An error occurred while despawning spawn (Object ID = " + _objectId + "): " + e.getMessage(), e);
}
}
}
@@ -34,7 +34,7 @@ import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
public class BlockList
{
private static Logger _log = Logger.getLogger(BlockList.class.getName());
private static Logger LOGGER = Logger.getLogger(BlockList.class.getName());
private static final Map<Integer, List<Integer>> OFFLINE_LIST = new ConcurrentHashMap<>();
private final L2PcInstance _owner;
@@ -90,7 +90,7 @@ public class BlockList
}
catch (Exception e)
{
_log.log(Level.WARNING, "Error found in " + ObjId + " FriendList while loading BlockList: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Error found in " + ObjId + " FriendList while loading BlockList: " + e.getMessage(), e);
}
return list;
}
@@ -121,7 +121,7 @@ public class BlockList
}
catch (Exception e)
{
_log.log(Level.WARNING, "Could not add block player: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Could not add block player: " + e.getMessage(), e);
}
}
@@ -61,7 +61,7 @@ import com.l2jmobius.gameserver.network.serverpackets.ShortBuffStatusUpdate;
*/
public final class CharEffectList
{
private static final Logger _log = Logger.getLogger(CharEffectList.class.getName());
private static final Logger LOGGER = Logger.getLogger(CharEffectList.class.getName());
/** Queue containing all effects from buffs for this effect list. */
private volatile Queue<BuffInfo> _buffs = new ConcurrentLinkedQueue<>();
/** Queue containing all triggered skills for this effect list. */
@@ -1153,7 +1153,7 @@ public final class CharEffectList
// Passive effects don't need stack type!
if (!skill.getAbnormalType().isNone())
{
_log.warning("Passive " + skill + " with abnormal type: " + skill.getAbnormalType() + "!");
LOGGER.warning("Passive " + skill + " with abnormal type: " + skill.getAbnormalType() + "!");
}
// Check for passive skill conditions.
@@ -51,7 +51,7 @@ import com.l2jmobius.gameserver.util.Broadcast;
public class CursedWeapon implements INamable
{
private static final Logger _log = Logger.getLogger(CursedWeapon.class.getName());
private static final Logger LOGGER = Logger.getLogger(CursedWeapon.class.getName());
// _name is the name of the cursed weapon associated with its ID.
private final String _name;
@@ -97,7 +97,7 @@ public class CursedWeapon implements INamable
if ((_player != null) && _player.isOnline())
{
// Remove from player
_log.info(_name + " being removed online.");
LOGGER.info(_name + " being removed online.");
_player.abortAttack();
@@ -136,7 +136,7 @@ public class CursedWeapon implements INamable
else
{
// Remove from Db
_log.info(_name + " being removed offline.");
LOGGER.info(_name + " being removed offline.");
try (Connection con = DatabaseFactory.getInstance().getConnection();
PreparedStatement del = con.prepareStatement("DELETE FROM items WHERE owner_id=? AND item_id=?");
@@ -147,7 +147,7 @@ public class CursedWeapon implements INamable
del.setInt(2, _itemId);
if (del.executeUpdate() != 1)
{
_log.warning("Error while deleting itemId " + _itemId + " from userId " + _playerId);
LOGGER.warning("Error while deleting itemId " + _itemId + " from userId " + _playerId);
}
// Restore the karma
@@ -156,12 +156,12 @@ public class CursedWeapon implements INamable
ps.setInt(3, _playerId);
if (ps.executeUpdate() != 1)
{
_log.warning("Error while updating karma & pkkills for userId " + _playerId);
LOGGER.warning("Error while updating karma & pkkills for userId " + _playerId);
}
}
catch (Exception e)
{
_log.log(Level.WARNING, "Could not delete : " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Could not delete : " + e.getMessage(), e);
}
}
}
@@ -197,7 +197,7 @@ public class CursedWeapon implements INamable
{
_item.decayMe();
L2World.getInstance().removeObject(_item);
_log.info(_name + " item has been removed from World.");
LOGGER.info(_name + " item has been removed from World.");
}
// Delete infos from table if any
@@ -496,7 +496,7 @@ public class CursedWeapon implements INamable
}
catch (SQLException e)
{
_log.log(Level.SEVERE, "CursedWeapon: Failed to save data.", e);
LOGGER.log(Level.SEVERE, "CursedWeapon: Failed to save data.", e);
}
}
@@ -42,7 +42,7 @@ public final class L2Augmentation
public static class AugmentationStatBoni
{
private static final Logger _log = Logger.getLogger(AugmentationStatBoni.class.getName());
private static final Logger LOGGER = Logger.getLogger(AugmentationStatBoni.class.getName());
private final List<Options> _options = new ArrayList<>();
private boolean _active;
@@ -62,7 +62,7 @@ public final class L2Augmentation
}
else
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't find option: " + stat);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Couldn't find option: " + stat);
}
}
}
@@ -80,7 +80,7 @@ import com.l2jmobius.gameserver.util.Util;
public class L2Clan implements IIdentifiable, INamable
{
private static final Logger _log = Logger.getLogger(L2Clan.class.getName());
private static final Logger LOGGER = Logger.getLogger(L2Clan.class.getName());
// SQL queries
private static final String INSERT_CLAN_DATA = "INSERT INTO clan_data (clan_id,clan_name,clan_level,hasCastle,blood_alliance_count,blood_oath_count,ally_id,ally_name,leader_id,crest_id,crest_large_id,ally_crest_id,new_leader_id) values (?,?,?,?,?,?,?,?,?,?,?,?,?)";
@@ -257,7 +257,7 @@ public class L2Clan implements IIdentifiable, INamable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Couldn't update clan privs for old clan leader", e);
LOGGER.log(Level.WARNING, "Couldn't update clan privs for old clan leader", e);
}
}
@@ -297,14 +297,14 @@ public class L2Clan implements IIdentifiable, INamable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Couldn't update clan privs for new clan leader", e);
LOGGER.log(Level.WARNING, "Couldn't update clan privs for new clan leader", e);
}
}
broadcastClanStatus();
broadcastToOnlineMembers(SystemMessage.getSystemMessage(SystemMessageId.CLAN_LORD_PRIVILEGES_HAVE_BEEN_TRANSFERRED_TO_C1).addString(member.getName()));
_log.log(Level.INFO, "Leader of Clan: " + getName() + " changed to: " + member.getName() + " ex leader: " + exMember.getName());
LOGGER.log(Level.INFO, "Leader of Clan: " + getName() + " changed to: " + member.getName() + " ex leader: " + exMember.getName());
}
/**
@@ -314,7 +314,7 @@ public class L2Clan implements IIdentifiable, INamable
{
if (_leader == null)
{
_log.warning(L2Clan.class.getName() + ": Clan " + getName() + " without clan leader!");
LOGGER.warning(L2Clan.class.getName() + ": Clan " + getName() + " without clan leader!");
return "";
}
return _leader.getName();
@@ -417,7 +417,7 @@ public class L2Clan implements IIdentifiable, INamable
final L2ClanMember exMember = _members.remove(objectId);
if (exMember == null)
{
_log.warning("Member Object ID: " + objectId + " not found in clan while trying to remove");
LOGGER.warning("Member Object ID: " + objectId + " not found in clan while trying to remove");
return;
}
final int leadssubpledge = getLeaderSubPledge(objectId);
@@ -879,7 +879,7 @@ public class L2Clan implements IIdentifiable, INamable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Exception on updateBloodAllianceCountInDB(): " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Exception on updateBloodAllianceCountInDB(): " + e.getMessage(), e);
}
}
@@ -923,7 +923,7 @@ public class L2Clan implements IIdentifiable, INamable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Exception on updateBloodAllianceCountInDB(): " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Exception on updateBloodAllianceCountInDB(): " + e.getMessage(), e);
}
}
@@ -941,7 +941,7 @@ public class L2Clan implements IIdentifiable, INamable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Exception on updateClanScoreInDb(): " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Exception on updateClanScoreInDb(): " + e.getMessage(), e);
}
}
@@ -978,7 +978,7 @@ public class L2Clan implements IIdentifiable, INamable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Error saving clan: " + e.getMessage(), e);
LOGGER.log(Level.SEVERE, "Error saving clan: " + e.getMessage(), e);
}
}
@@ -1019,7 +1019,7 @@ public class L2Clan implements IIdentifiable, INamable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Error saving new clan: " + e.getMessage(), e);
LOGGER.log(Level.SEVERE, "Error saving new clan: " + e.getMessage(), e);
}
}
@@ -1051,7 +1051,7 @@ public class L2Clan implements IIdentifiable, INamable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Error removing clan member: " + e.getMessage(), e);
LOGGER.log(Level.SEVERE, "Error removing clan member: " + e.getMessage(), e);
}
}
@@ -1126,7 +1126,7 @@ public class L2Clan implements IIdentifiable, INamable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Error restoring clan data: " + e.getMessage(), e);
LOGGER.log(Level.SEVERE, "Error restoring clan data: " + e.getMessage(), e);
}
}
@@ -1147,7 +1147,7 @@ public class L2Clan implements IIdentifiable, INamable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Error restoring clan notice: " + e.getMessage(), e);
LOGGER.log(Level.SEVERE, "Error restoring clan notice: " + e.getMessage(), e);
}
}
@@ -1189,7 +1189,7 @@ public class L2Clan implements IIdentifiable, INamable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Error could not store clan notice: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Error could not store clan notice: " + e.getMessage(), e);
}
_notice = notice;
@@ -1252,7 +1252,7 @@ public class L2Clan implements IIdentifiable, INamable
}
else
{
_log.info("Missing subpledge " + subType + " for clan " + this + ", skill skipped.");
LOGGER.info("Missing subpledge " + subType + " for clan " + this + ", skill skipped.");
}
}
}
@@ -1260,7 +1260,7 @@ public class L2Clan implements IIdentifiable, INamable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Error restoring clan skills: " + e.getMessage(), e);
LOGGER.log(Level.SEVERE, "Error restoring clan skills: " + e.getMessage(), e);
}
}
@@ -1319,7 +1319,7 @@ public class L2Clan implements IIdentifiable, INamable
final SubPledge subunit = getSubPledge(subType);
if (subunit == null)
{
_log.log(Level.WARNING, "Subpledge " + subType + " does not exist for clan " + this);
LOGGER.log(Level.WARNING, "Subpledge " + subType + " does not exist for clan " + this);
return oldSkill;
}
oldSkill = subunit.addNewSkill(newSkill);
@@ -1352,7 +1352,7 @@ public class L2Clan implements IIdentifiable, INamable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Error could not store clan skills: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Error could not store clan skills: " + e.getMessage(), e);
}
final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.THE_CLAN_SKILL_S1_HAS_BEEN_ADDED);
@@ -1401,7 +1401,7 @@ public class L2Clan implements IIdentifiable, INamable
}
catch (NullPointerException e)
{
_log.log(Level.WARNING, e.getMessage(), e);
LOGGER.log(Level.WARNING, e.getMessage(), e);
}
}
}
@@ -1783,7 +1783,7 @@ public class L2Clan implements IIdentifiable, INamable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Could not restore clan sub-units: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Could not restore clan sub-units: " + e.getMessage(), e);
}
}
@@ -1892,7 +1892,7 @@ public class L2Clan implements IIdentifiable, INamable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Error saving sub clan data: " + e.getMessage(), e);
LOGGER.log(Level.SEVERE, "Error saving sub clan data: " + e.getMessage(), e);
}
broadcastToOnlineMembers(new PledgeShowInfoUpdate(_leader.getClan()));
@@ -1957,7 +1957,7 @@ public class L2Clan implements IIdentifiable, INamable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Error updating subpledge: " + e.getMessage(), e);
LOGGER.log(Level.SEVERE, "Error updating subpledge: " + e.getMessage(), e);
}
}
@@ -1989,7 +1989,7 @@ public class L2Clan implements IIdentifiable, INamable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Error restoring clan privs by rank: " + e.getMessage(), e);
LOGGER.log(Level.SEVERE, "Error restoring clan privs by rank: " + e.getMessage(), e);
}
}
@@ -2025,7 +2025,7 @@ public class L2Clan implements IIdentifiable, INamable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Could not store clan privs for rank: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Could not store clan privs for rank: " + e.getMessage(), e);
}
for (L2ClanMember cm : getMembers())
@@ -2061,7 +2061,7 @@ public class L2Clan implements IIdentifiable, INamable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Could not create new rank and store clan privs for rank: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Could not create new rank and store clan privs for rank: " + e.getMessage(), e);
}
}
}
@@ -2177,7 +2177,7 @@ public class L2Clan implements IIdentifiable, INamable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Could not store auction for clan: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Could not store auction for clan: " + e.getMessage(), e);
}
}
}
@@ -2730,7 +2730,7 @@ public class L2Clan implements IIdentifiable, INamable
}
catch (Exception e)
{
_log.log(Level.WARNING, "could not increase clan level:" + e.getMessage(), e);
LOGGER.log(Level.WARNING, "could not increase clan level:" + e.getMessage(), e);
}
setLevel(level);
@@ -2776,7 +2776,7 @@ public class L2Clan implements IIdentifiable, INamable
}
catch (SQLException e)
{
_log.log(Level.WARNING, "Could not update crest for clan " + getName() + " [" + getId() + "] : " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Could not update crest for clan " + getName() + " [" + getId() + "] : " + e.getMessage(), e);
}
for (L2PcInstance member : getOnlineMembers(0))
@@ -2813,7 +2813,7 @@ public class L2Clan implements IIdentifiable, INamable
}
catch (SQLException e)
{
_log.log(Level.WARNING, "Could not update ally crest for ally/clan id " + allyId + " : " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Could not update ally crest for ally/clan id " + allyId + " : " + e.getMessage(), e);
}
if (onlyThisClan)
@@ -2859,7 +2859,7 @@ public class L2Clan implements IIdentifiable, INamable
}
catch (SQLException e)
{
_log.log(Level.WARNING, "Could not update large crest for clan " + getName() + " [" + getId() + "] : " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Could not update large crest for clan " + getName() + " [" + getId() + "] : " + e.getMessage(), e);
}
for (L2PcInstance member : getOnlineMembers(0))
@@ -67,7 +67,7 @@ import com.l2jmobius.gameserver.util.Util;
*/
public class L2Party extends AbstractPlayerGroup
{
private static final Logger _log = Logger.getLogger(L2Party.class.getName());
private static final Logger LOGGER = Logger.getLogger(L2Party.class.getName());
// @formatter:off
private static final double[] BONUS_EXP_SP =
@@ -430,7 +430,7 @@ public class L2Party extends AbstractPlayerGroup
}
catch (Exception e)
{
_log.log(Level.WARNING, "", e);
LOGGER.log(Level.WARNING, "", e);
}
SystemMessage msg;
@@ -28,7 +28,7 @@ import com.l2jmobius.commons.util.Rnd;
*/
public class L2Territory
{
private static Logger _log = Logger.getLogger(L2Territory.class.getName());
private static Logger LOGGER = Logger.getLogger(L2Territory.class.getName());
protected static class Point
{
@@ -176,7 +176,7 @@ public class L2Territory
return new Location(x, y, Rnd.get(zmin, _zMax));
}
}
_log.warning("Can't make point for territory " + _terr);
LOGGER.warning("Can't make point for territory " + _terr);
return null;
}
@@ -38,7 +38,7 @@ import com.l2jmobius.gameserver.network.serverpackets.SendMacroList;
public class MacroList implements IRestorable
{
private static final Logger _log = Logger.getLogger(MacroList.class.getName());
private static final Logger LOGGER = Logger.getLogger(MacroList.class.getName());
private final L2PcInstance _owner;
private int _revision;
@@ -158,7 +158,7 @@ public class MacroList implements IRestorable
}
catch (Exception e)
{
_log.log(Level.WARNING, "could not store macro:", e);
LOGGER.log(Level.WARNING, "could not store macro:", e);
}
}
@@ -173,7 +173,7 @@ public class MacroList implements IRestorable
}
catch (Exception e)
{
_log.log(Level.WARNING, "could not delete macro:", e);
LOGGER.log(Level.WARNING, "could not delete macro:", e);
}
}
@@ -219,7 +219,7 @@ public class MacroList implements IRestorable
}
catch (Exception e)
{
_log.log(Level.WARNING, "could not store shortcuts:", e);
LOGGER.log(Level.WARNING, "could not store shortcuts:", e);
return false;
}
return true;
@@ -36,7 +36,7 @@ import com.l2jmobius.gameserver.network.serverpackets.ShortCutRegister;
public class ShortCuts implements IRestorable
{
private static Logger _log = Logger.getLogger(ShortCuts.class.getName());
private static Logger LOGGER = Logger.getLogger(ShortCuts.class.getName());
private static final int MAX_SHORTCUTS_PER_BAR = 12;
private final L2PcInstance _owner;
private final Map<Integer, Shortcut> _shortCuts = new TreeMap<>();
@@ -99,7 +99,7 @@ public class ShortCuts implements IRestorable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Could not store character shortcut: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Could not store character shortcut: " + e.getMessage(), e);
}
}
@@ -164,7 +164,7 @@ public class ShortCuts implements IRestorable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Could not delete character shortcut: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Could not delete character shortcut: " + e.getMessage(), e);
}
}
@@ -190,7 +190,7 @@ public class ShortCuts implements IRestorable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Could not restore character shortcuts: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Could not restore character shortcuts: " + e.getMessage(), e);
return false;
}
@@ -29,7 +29,7 @@ import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
public class TerritoryWard
{
// private static final Logger _log = Logger.getLogger(CombatFlag.class.getName());
// private static final Logger LOGGER = Logger.getLogger(CombatFlag.class.getName());
protected L2PcInstance _player = null;
public int playerId = 0;
@@ -44,7 +44,7 @@ import com.l2jmobius.gameserver.util.Util;
*/
public class TradeList
{
private static final Logger _log = Logger.getLogger(TradeList.class.getName());
private static final Logger LOGGER = Logger.getLogger(TradeList.class.getName());
private final L2PcInstance _owner;
private L2PcInstance _partner;
@@ -200,45 +200,45 @@ public class TradeList
{
if (isLocked())
{
_log.warning(_owner.getName() + ": Attempt to modify locked TradeList!");
LOGGER.warning(_owner.getName() + ": Attempt to modify locked TradeList!");
return null;
}
final L2Object o = L2World.getInstance().findObject(objectId);
if (!(o instanceof L2ItemInstance))
{
_log.warning(_owner.getName() + ": Trying to add something other than an item!");
LOGGER.warning(_owner.getName() + ": Trying to add something other than an item!");
return null;
}
final L2ItemInstance item = (L2ItemInstance) o;
if (!(item.isTradeable() || (getOwner().isGM() && Config.GM_TRADE_RESTRICTED_ITEMS)) || item.isQuestItem())
{
_log.warning(_owner.getName() + ": Attempt to add a restricted item!");
LOGGER.warning(_owner.getName() + ": Attempt to add a restricted item!");
return null;
}
if (!getOwner().getInventory().canManipulateWithItemId(item.getId()))
{
_log.warning(_owner.getName() + ": Attempt to add an item that can't manipualte!");
LOGGER.warning(_owner.getName() + ": Attempt to add an item that can't manipualte!");
return null;
}
if ((count <= 0) || (count > item.getCount()))
{
_log.warning(_owner.getName() + ": Attempt to add an item with invalid item count!");
LOGGER.warning(_owner.getName() + ": Attempt to add an item with invalid item count!");
return null;
}
if (!item.isStackable() && (count > 1))
{
_log.warning(_owner.getName() + ": Attempt to add non-stackable item to TradeList with count > 1!");
LOGGER.warning(_owner.getName() + ": Attempt to add non-stackable item to TradeList with count > 1!");
return null;
}
if ((Inventory.MAX_ADENA / count) < price)
{
_log.warning(_owner.getName() + ": Attempt to overflow adena !");
LOGGER.warning(_owner.getName() + ": Attempt to overflow adena !");
return null;
}
@@ -246,7 +246,7 @@ public class TradeList
{
if (checkitem.getObjectId() == objectId)
{
_log.warning(_owner.getName() + ": Attempt to add an item that is already present!");
LOGGER.warning(_owner.getName() + ": Attempt to add an item that is already present!");
return null;
}
}
@@ -270,14 +270,14 @@ public class TradeList
{
if (isLocked())
{
_log.warning(_owner.getName() + ": Attempt to modify locked TradeList!");
LOGGER.warning(_owner.getName() + ": Attempt to modify locked TradeList!");
return null;
}
final L2Item item = ItemTable.getInstance().getTemplate(itemId);
if (item == null)
{
_log.warning(_owner.getName() + ": Attempt to add invalid item to TradeList!");
LOGGER.warning(_owner.getName() + ": Attempt to add invalid item to TradeList!");
return null;
}
@@ -288,13 +288,13 @@ public class TradeList
if (!item.isStackable() && (count > 1))
{
_log.warning(_owner.getName() + ": Attempt to add non-stackable item to TradeList with count > 1!");
LOGGER.warning(_owner.getName() + ": Attempt to add non-stackable item to TradeList with count > 1!");
return null;
}
if ((Inventory.MAX_ADENA / count) < price)
{
_log.warning(_owner.getName() + ": Attempt to overflow adena !");
LOGGER.warning(_owner.getName() + ": Attempt to overflow adena !");
return null;
}
@@ -317,7 +317,7 @@ public class TradeList
{
if (isLocked())
{
_log.warning(_owner.getName() + ": Attempt to modify locked TradeList!");
LOGGER.warning(_owner.getName() + ": Attempt to modify locked TradeList!");
return null;
}
@@ -331,7 +331,7 @@ public class TradeList
final TradeList partnerList = _partner.getActiveTradeList();
if (partnerList == null)
{
_log.warning(_partner.getName() + ": Trading partner (" + _partner.getName() + ") is invalid in this trade!");
LOGGER.warning(_partner.getName() + ": Trading partner (" + _partner.getName() + ") is invalid in this trade!");
return null;
}
partnerList.invalidateConfirmation();
@@ -406,7 +406,7 @@ public class TradeList
final TradeList partnerList = _partner.getActiveTradeList();
if (partnerList == null)
{
_log.warning(_partner.getName() + ": Trading partner (" + _partner.getName() + ") is invalid in this trade!");
LOGGER.warning(_partner.getName() + ": Trading partner (" + _partner.getName() + ") is invalid in this trade!");
return false;
}
@@ -471,7 +471,7 @@ public class TradeList
// Check for Owner validity
if ((_owner == null) || (L2World.getInstance().getPlayer(_owner.getObjectId()) == null))
{
_log.warning("Invalid owner of TradeList");
LOGGER.warning("Invalid owner of TradeList");
return false;
}
@@ -481,7 +481,7 @@ public class TradeList
final L2ItemInstance item = _owner.checkItemManipulation(titem.getObjectId(), titem.getCount(), "transfer");
if ((item == null) || (item.getCount() < 1))
{
_log.warning(_owner.getName() + ": Invalid Item in TradeList");
LOGGER.warning(_owner.getName() + ": Invalid Item in TradeList");
return false;
}
}
@@ -34,7 +34,7 @@ import com.l2jmobius.gameserver.data.xml.impl.UIData;
*/
public class UIKeysSettings
{
private static final Logger _log = Logger.getLogger(UIKeysSettings.class.getName());
private static final Logger LOGGER = Logger.getLogger(UIKeysSettings.class.getName());
private final int _playerObjId;
private Map<Integer, List<ActionKey>> _storedKeys;
@@ -111,7 +111,7 @@ public class UIKeysSettings
}
catch (Exception e)
{
_log.log(Level.WARNING, "Exception: saveInDB(): " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Exception: saveInDB(): " + e.getMessage(), e);
}
query = "REPLACE INTO character_ui_actions (`charId`, `cat`, `order`, `cmd`, `key`, `tgKey1`, `tgKey2`, `show`) VALUES";
@@ -132,7 +132,7 @@ public class UIKeysSettings
}
catch (Exception e)
{
_log.log(Level.WARNING, "Exception: saveInDB(): " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Exception: saveInDB(): " + e.getMessage(), e);
}
_saved = true;
}
@@ -160,7 +160,7 @@ public class UIKeysSettings
}
catch (Exception e)
{
_log.log(Level.WARNING, "Exception: getCatsFromDB(): " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Exception: getCatsFromDB(): " + e.getMessage(), e);
}
if (_storedCategories.isEmpty())
@@ -193,7 +193,7 @@ public class UIKeysSettings
}
catch (Exception e)
{
_log.log(Level.WARNING, "Exception: getKeysFromDB(): " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Exception: getKeysFromDB(): " + e.getMessage(), e);
}
if (_storedKeys.isEmpty())
@@ -586,7 +586,7 @@ public class L2Attackable extends L2Npc
}
catch (Exception e)
{
_log.log(Level.SEVERE, "", e);
LOGGER.log(Level.SEVERE, "", e);
}
}
@@ -635,7 +635,7 @@ public class L2Attackable extends L2Npc
}
catch (Exception e)
{
_log.log(Level.SEVERE, "", e);
LOGGER.log(Level.SEVERE, "", e);
}
}
}
@@ -731,7 +731,7 @@ public class L2Attackable extends L2Npc
final AggroInfo ai = _aggroList.get(target);
if (ai == null)
{
_log.info("Target " + target + " not present in aggro list of " + this);
LOGGER.info("Target " + target + " not present in aggro list of " + this);
return;
}
@@ -172,7 +172,7 @@ import com.l2jmobius.gameserver.util.Util;
*/
public abstract class L2Character extends L2Object implements ISkillsHolder, IDeletable
{
public static final Logger _log = Logger.getLogger(L2Character.class.getName());
public static final Logger LOGGER = Logger.getLogger(L2Character.class.getName());
private volatile Set<L2Character> _attackByList;
private volatile boolean _isCastingNow = false;
@@ -3953,7 +3953,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
distFraction = distPassed / delta;
}
// if (Config.DEVELOPER) _log.warning("Move Ticks:" + (gameTicks - m._moveTimestamp) + ", distPassed:" + distPassed + ", distFraction:" + distFraction);
// if (Config.DEVELOPER) LOGGER.warning("Move Ticks:" + (gameTicks - m._moveTimestamp) + ", distPassed:" + distPassed + ", distFraction:" + distFraction);
if (distFraction > 1)
{
@@ -4270,7 +4270,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
// Temporary fix for character outside world region errors (should not happen)
if ((curX < L2World.MAP_MIN_X) || (curX > L2World.MAP_MAX_X) || (curY < L2World.MAP_MIN_Y) || (curY > L2World.MAP_MAX_Y))
{
_log.warning("Character " + getName() + " outside world area, in coordinates x:" + curX + " y:" + curY);
LOGGER.warning("Character " + getName() + " outside world area, in coordinates x:" + curX + " y:" + curY);
getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
if (isPlayer())
{
@@ -4663,7 +4663,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
}
else
{
_log.warning("Skill 4515 at level 1 is missing in DP.");
LOGGER.warning("Skill 4515 at level 1 is missing in DP.");
}
damage = 0; // prevents messing up drop calculation
@@ -5432,7 +5432,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
}
catch (NullPointerException e)
{
_log.log(Level.WARNING, "", e);
LOGGER.log(Level.WARNING, "", e);
}
if (mut.getSkillTime() > 0)
@@ -5584,7 +5584,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
}
else
{
_log.warning("Skill ID " + curse.getId() + " level " + curse.getLevel() + " is missing in DP!");
LOGGER.warning("Skill ID " + curse.getId() + " level " + curse.getLevel() + " is missing in DP!");
}
return;
}
@@ -5760,7 +5760,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
}
catch (Exception e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": callSkill() failed.", e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": callSkill() failed.", e);
}
}
@@ -6436,7 +6436,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
}
catch (Exception e)
{
_log.log(Level.WARNING, "", e);
LOGGER.log(Level.WARNING, "", e);
}
}
@@ -743,7 +743,7 @@ public class L2Npc extends L2Character
}
else
{
_log.info(getClass().getSimpleName() + ": Unknown NPC bypass: \"" + command + "\" NpcId: " + getId());
LOGGER.info(getClass().getSimpleName() + ": Unknown NPC bypass: \"" + command + "\" NpcId: " + getId());
}
}
}
@@ -1337,7 +1337,7 @@ public class L2Npc extends L2Character
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Failed decayMe().", e);
LOGGER.log(Level.SEVERE, "Failed decayMe().", e);
}
if (isChannelized())
@@ -1492,7 +1492,7 @@ public class L2Npc extends L2Character
final NpcHtmlMessage noTeachMsg = new NpcHtmlMessage(getObjectId());
if (html == null)
{
_log.warning("Npc " + npcId + " missing noTeach html!");
LOGGER.warning("Npc " + npcId + " missing noTeach html!");
noTeachMsg.setHtml("<html><body>I cannot teach you any skills.<br>You must find your current class teachers.</body></html>");
}
else
@@ -1777,7 +1777,7 @@ public class L2Npc extends L2Character
if (ItemTable.getInstance().getTemplate(itemId) == null)
{
_log.log(Level.SEVERE, "Item doesn't exist so cannot be dropped. Item ID: " + itemId + " Quest: " + getName());
LOGGER.log(Level.SEVERE, "Item doesn't exist so cannot be dropped. Item ID: " + itemId + " Quest: " + getName());
return null;
}
@@ -380,7 +380,7 @@ public abstract class L2Vehicle extends L2Character
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Failed stopMove().", e);
LOGGER.log(Level.SEVERE, "Failed stopMove().", e);
}
try
@@ -389,7 +389,7 @@ public abstract class L2Vehicle extends L2Character
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Failed oustPlayers().", e);
LOGGER.log(Level.SEVERE, "Failed oustPlayers().", e);
}
final ZoneRegion oldZoneRegion = ZoneManager.getInstance().getRegion(this);
@@ -400,7 +400,7 @@ public abstract class L2Vehicle extends L2Character
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Failed decayMe().", e);
LOGGER.log(Level.SEVERE, "Failed decayMe().", e);
}
oldZoneRegion.removeFromZones(this);
@@ -181,7 +181,7 @@ public final class L2AuctioneerInstance extends L2Npc
}
else
{
_log.warning("Auctioneer Auction null for AuctionId : " + auctionId);
LOGGER.warning("Auctioneer Auction null for AuctionId : " + auctionId);
}
player.sendPacket(html);
@@ -413,7 +413,7 @@ public final class L2AuctioneerInstance extends L2Npc
}
else
{
_log.warning("Auctioneer Auction null for AuctionBiddedAt : " + player.getClan().getAuctionBiddedAt());
LOGGER.warning("Auctioneer Auction null for AuctionBiddedAt : " + player.getClan().getAuctionBiddedAt());
}
player.sendPacket(html);
@@ -445,7 +445,7 @@ public final class L2AuctioneerInstance extends L2Npc
}
else
{
_log.warning("Auctioneer Auction null for getHasHideout : " + player.getClan().getHideoutId());
LOGGER.warning("Auctioneer Auction null for getHasHideout : " + player.getClan().getHideoutId());
}
player.sendPacket(html);
@@ -470,7 +470,7 @@ public final class L2AuctioneerInstance extends L2Npc
}
else
{
_log.warning("Clan Hall ID NULL : " + ItemId + " Can be caused by concurent write in ClanHallManager");
LOGGER.warning("Clan Hall ID NULL : " + ItemId + " Can be caused by concurent write in ClanHallManager");
}
player.sendPacket(html);
@@ -598,7 +598,7 @@ public final class L2AuctioneerInstance extends L2Npc
}
else
{
_log.warning("Auctioneer Auction null for AuctionBiddedAt : " + player.getClan().getAuctionBiddedAt());
LOGGER.warning("Auctioneer Auction null for AuctionBiddedAt : " + player.getClan().getAuctionBiddedAt());
}
player.sendPacket(html);
@@ -1771,7 +1771,7 @@ public class L2ClanHallManagerInstance extends L2MerchantInstance
}
else
{
_log.warning("No teleport destination with id:" + val);
LOGGER.warning("No teleport destination with id:" + val);
}
player.sendPacket(ActionFailed.STATIC_PACKET);
}
@@ -61,7 +61,7 @@ public class L2ControlTowerInstance extends L2Tower
}
catch (Exception e)
{
_log.log(Level.WARNING, "Error at L2ControlTowerInstance", e);
LOGGER.log(Level.WARNING, "Error at L2ControlTowerInstance", e);
}
}
_guards.clear();
@@ -46,7 +46,7 @@ import com.l2jmobius.gameserver.network.SystemMessageId;
public final class L2CubicInstance implements IIdentifiable
{
private static final Logger _log = Logger.getLogger(L2CubicInstance.class.getName());
private static final Logger LOGGER = Logger.getLogger(L2CubicInstance.class.getName());
// Type of Cubics
public static final int STORM_CUBIC = 1;
@@ -486,7 +486,7 @@ public final class L2CubicInstance implements IIdentifiable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "", e);
LOGGER.log(Level.SEVERE, "", e);
}
}
@@ -95,7 +95,7 @@ public class L2DecoyInstance extends L2Decoy
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Decoy Error: ", e);
LOGGER.log(Level.SEVERE, "Decoy Error: ", e);
}
}
}
@@ -121,7 +121,7 @@ public class L2DecoyInstance extends L2Decoy
}
catch (Throwable e)
{
_log.log(Level.SEVERE, "Decoy Error: ", e);
LOGGER.log(Level.SEVERE, "Decoy Error: ", e);
}
}
}
@@ -135,7 +135,7 @@ public class L2DefenderInstance extends L2Attackable
_hall = getConquerableHall();
if ((_fort == null) && (_castle == null) && (_hall == null))
{
_log.warning("L2DefenderInstance spawned outside of Fortress, Castle or Siegable hall Zone! NpcId: " + getId() + " x=" + getX() + " y=" + getY() + " z=" + getZ());
LOGGER.warning("L2DefenderInstance spawned outside of Fortress, Castle or Siegable hall Zone! NpcId: " + getId() + " x=" + getX() + " y=" + getY() + " z=" + getZ());
}
}
@@ -237,7 +237,7 @@ public class L2DoorInstance extends L2Character
}
else
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": cannot find child id: " + getChildId());
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": cannot find child id: " + getChildId());
}
}
}
@@ -151,7 +151,7 @@ public class L2DoormenInstance extends L2NpcInstance
}
else
{
_log.warning("No teleport destination with id:" + whereTo);
LOGGER.warning("No teleport destination with id:" + whereTo);
}
player.sendPacket(ActionFailed.STATIC_PACKET);
@@ -174,7 +174,7 @@ public class L2DungeonGatekeeperInstance extends L2Npc
}
else
{
_log.warning("No teleport destination with id:" + val);
LOGGER.warning("No teleport destination with id:" + val);
}
player.sendPacket(ActionFailed.STATIC_PACKET);
@@ -255,7 +255,7 @@ public class L2FortManagerInstance extends L2MerchantInstance
}
else
{
_log.warning("Missing htm: " + htmFile + " !");
LOGGER.warning("Missing htm: " + htmFile + " !");
}
}
else
@@ -1012,7 +1012,7 @@ public class L2FortManagerInstance extends L2MerchantInstance
}
else
{
_log.warning("No teleport destination with id:" + val);
LOGGER.warning("No teleport destination with id:" + val);
}
player.sendPacket(ActionFailed.STATIC_PACKET);
}
@@ -86,14 +86,14 @@ public class L2MerchantInstance extends L2NpcInstance
final L2BuyList buyList = BuyListData.getInstance().getBuyList(val);
if (buyList == null)
{
_log.warning("BuyList not found! BuyListId:" + val);
LOGGER.warning("BuyList not found! BuyListId:" + val);
player.sendPacket(ActionFailed.STATIC_PACKET);
return;
}
if (!buyList.isNpcAllowed(getId()))
{
_log.warning("Npc not allowed in BuyList! BuyListId:" + val + " NpcId:" + getId());
LOGGER.warning("Npc not allowed in BuyList! BuyListId:" + val + " NpcId:" + getId());
player.sendPacket(ActionFailed.STATIC_PACKET);
return;
}
@@ -42,7 +42,7 @@ import com.l2jmobius.gameserver.taskmanager.AttackStanceTaskManager;
*/
public class L2NpcBufferInstance extends L2Npc
{
private static final Logger _log = Logger.getLogger(L2NpcBufferInstance.class.getName());
private static final Logger LOGGER = Logger.getLogger(L2NpcBufferInstance.class.getName());
private static final Map<Integer, Integer> pageVal = new HashMap<>();
@@ -118,7 +118,7 @@ public class L2NpcBufferInstance extends L2Npc
{
if (buffGroupList == null)
{
_log.warning("NPC Buffer Warning: npcId = " + npcId + " has no buffGroup set in the bypass for the buff selected.");
LOGGER.warning("NPC Buffer Warning: npcId = " + npcId + " has no buffGroup set in the bypass for the buff selected.");
return;
}
@@ -127,7 +127,7 @@ public class L2NpcBufferInstance extends L2Npc
final NpcBufferData npcBuffGroupInfo = NpcBufferTable.getInstance().getSkillInfo(npcId, buffGroup);
if (npcBuffGroupInfo == null)
{
_log.warning("NPC Buffer Warning: npcId = " + npcId + " Location: " + getX() + ", " + getY() + ", " + getZ() + " Player: " + player.getName() + " has tried to use skill group (" + buffGroup + ") not assigned to the NPC Buffer!");
LOGGER.warning("NPC Buffer Warning: npcId = " + npcId + " Location: " + getX() + ", " + getY() + ", " + getZ() + " Player: " + player.getName() + " has tried to use skill group (" + buffGroup + ") not assigned to the NPC Buffer!");
return;
}
@@ -1354,7 +1354,7 @@ public final class L2PcInstance extends L2Playable
}
else
{
_log.warning("Attempted to remove unknown RecipeList: " + recipeId);
LOGGER.warning("Attempted to remove unknown RecipeList: " + recipeId);
}
for (Shortcut sc : getAllShortCuts())
@@ -1379,7 +1379,7 @@ public final class L2PcInstance extends L2Playable
}
catch (SQLException e)
{
_log.log(Level.WARNING, "SQL exception while inserting recipe: " + recipeId + " from character " + getObjectId(), e);
LOGGER.log(Level.WARNING, "SQL exception while inserting recipe: " + recipeId + " from character " + getObjectId(), e);
}
}
@@ -1395,7 +1395,7 @@ public final class L2PcInstance extends L2Playable
}
catch (SQLException e)
{
_log.log(Level.WARNING, "SQL exception while deleting recipe: " + recipeId + " from character " + getObjectId(), e);
LOGGER.log(Level.WARNING, "SQL exception while deleting recipe: " + recipeId + " from character " + getObjectId(), e);
}
}
@@ -2616,7 +2616,7 @@ public final class L2PcInstance extends L2Playable
}
else
{
_log.warning("Skipping null auto-get skill for player: " + toString());
LOGGER.warning("Skipping null auto-get skill for player: " + toString());
}
}
}
@@ -3219,7 +3219,7 @@ public final class L2PcInstance extends L2Playable
final L2Item item = ItemTable.getInstance().getTemplate(itemId);
if (item == null)
{
_log.log(Level.SEVERE, "Item doesn't exist so cannot be added. Item ID: " + itemId);
LOGGER.log(Level.SEVERE, "Item doesn't exist so cannot be added. Item ID: " + itemId);
return null;
}
// Sends message to client if requested
@@ -3265,7 +3265,7 @@ public final class L2PcInstance extends L2Playable
final IItemHandler handler = ItemHandler.getInstance().getHandler(item instanceof L2EtcItem ? (L2EtcItem) item : null);
if (handler == null)
{
_log.warning("No item handler registered for Herb ID " + item.getId() + "!");
LOGGER.warning("No item handler registered for Herb ID " + item.getId() + "!");
}
else
{
@@ -3813,7 +3813,7 @@ public final class L2PcInstance extends L2Playable
// TODO: if we remove objects that are not visisble from the L2World, we'll have to remove this check
if (L2World.getInstance().findObject(objectId) == null)
{
_log.finest(getObjectId() + ": player tried to " + action + " item not available in L2World");
LOGGER.finest(getObjectId() + ": player tried to " + action + " item not available in L2World");
return null;
}
@@ -3821,19 +3821,19 @@ public final class L2PcInstance extends L2Playable
if ((item == null) || (item.getOwnerId() != getObjectId()))
{
_log.finest(getObjectId() + ": player tried to " + action + " item he is not owner of");
LOGGER.finest(getObjectId() + ": player tried to " + action + " item he is not owner of");
return null;
}
if ((count < 0) || ((count > 1) && !item.isStackable()))
{
_log.finest(getObjectId() + ": player tried to " + action + " item with invalid count: " + count);
LOGGER.finest(getObjectId() + ": player tried to " + action + " item with invalid count: " + count);
return null;
}
if (count > item.getCount())
{
_log.finest(getObjectId() + ": player tried to " + action + " more items than he owns");
LOGGER.finest(getObjectId() + ": player tried to " + action + " more items than he owns");
return null;
}
@@ -3865,7 +3865,7 @@ public final class L2PcInstance extends L2Playable
{
if (Config.DEVELOPER && (protect || (_protectEndTime > 0)))
{
_log.warning(getName() + ": Protection " + (protect ? "ON " + (GameTimeController.getInstance().getGameTicks() + (Config.PLAYER_SPAWN_PROTECTION * GameTimeController.TICKS_PER_SECOND)) : "OFF") + " (currently " + GameTimeController.getInstance().getGameTicks() + ")");
LOGGER.warning(getName() + ": Protection " + (protect ? "ON " + (GameTimeController.getInstance().getGameTicks() + (Config.PLAYER_SPAWN_PROTECTION * GameTimeController.TICKS_PER_SECOND)) : "OFF") + " (currently " + GameTimeController.getInstance().getGameTicks() + ")");
}
_protectEndTime = protect ? GameTimeController.getInstance().getGameTicks() + (Config.PLAYER_SPAWN_PROTECTION * GameTimeController.TICKS_PER_SECOND) : 0;
@@ -3875,7 +3875,7 @@ public final class L2PcInstance extends L2Playable
{
if (Config.DEVELOPER && (protect || (_teleportProtectEndTime > 0)))
{
_log.warning(getName() + ": Tele Protection " + (protect ? "ON " + (GameTimeController.getInstance().getGameTicks() + (Config.PLAYER_TELEPORT_PROTECTION * GameTimeController.TICKS_PER_SECOND)) : "OFF") + " (currently " + GameTimeController.getInstance().getGameTicks() + ")");
LOGGER.warning(getName() + ": Tele Protection " + (protect ? "ON " + (GameTimeController.getInstance().getGameTicks() + (Config.PLAYER_TELEPORT_PROTECTION * GameTimeController.TICKS_PER_SECOND)) : "OFF") + " (currently " + GameTimeController.getInstance().getGameTicks() + ")");
}
_teleportProtectEndTime = protect ? GameTimeController.getInstance().getGameTicks() + (Config.PLAYER_TELEPORT_PROTECTION * GameTimeController.TICKS_PER_SECOND) : 0;
@@ -4355,7 +4355,7 @@ public final class L2PcInstance extends L2Playable
if (!object.isItem())
{
// dont try to pickup anything that is not an item :)
_log.warning(this + " trying to pickup wrong target." + getTarget());
LOGGER.warning(this + " trying to pickup wrong target." + getTarget());
return;
}
@@ -4447,7 +4447,7 @@ public final class L2PcInstance extends L2Playable
}
else
{
_log.warning("No item handler registered for item ID: " + target.getId() + ".");
LOGGER.warning("No item handler registered for item ID: " + target.getId() + ".");
}
ItemTable.getInstance().destroyItem("Consume", target, this, null);
}
@@ -5285,11 +5285,11 @@ public final class L2PcInstance extends L2Playable
if (isKarmaDrop)
{
_log.warning(getName() + " has karma and dropped id = " + itemDrop.getId() + ", count = " + itemDrop.getCount());
LOGGER.warning(getName() + " has karma and dropped id = " + itemDrop.getId() + ", count = " + itemDrop.getCount());
}
else
{
_log.warning(getName() + " dropped id = " + itemDrop.getId() + ", count = " + itemDrop.getCount());
LOGGER.warning(getName() + " dropped id = " + itemDrop.getId() + ", count = " + itemDrop.getCount());
}
if (++dropCount >= dropLimit)
@@ -6493,11 +6493,11 @@ public final class L2PcInstance extends L2Playable
if (!AdminData.getInstance().hasAccessLevel(level))
{
_log.warning("Tried to set unregistered access level " + level + " for " + toString() + ". Setting access level without privileges!");
LOGGER.warning("Tried to set unregistered access level " + level + " for " + toString() + ". Setting access level without privileges!");
}
else if (level > 0)
{
_log.warning(_accessLevel.getName() + " access level set for character " + getName() + "! Just a warning to be careful ;)");
LOGGER.warning(_accessLevel.getName() + " access level set for character " + getName() + "! Just a warning to be careful ;)");
}
}
@@ -6619,7 +6619,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Failed updating character online status.", e);
LOGGER.log(Level.SEVERE, "Failed updating character online status.", e);
}
}
@@ -6673,7 +6673,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Could not insert char data: " + e.getMessage(), e);
LOGGER.log(Level.SEVERE, "Could not insert char data: " + e.getMessage(), e);
return false;
}
return true;
@@ -6800,7 +6800,7 @@ public final class L2PcInstance extends L2Playable
// a possible restart-while-modifysubclass cheat has been attempted.
// Switching to use base class
player.setClassId(player.getBaseClass());
_log.warning("Player " + player.getName() + " reverted to base class. Possibly has tried a relogin exploit while subclassing.");
LOGGER.warning("Player " + player.getName() + " reverted to base class. Possibly has tried a relogin exploit while subclassing.");
}
else
{
@@ -6953,7 +6953,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Failed loading character.", e);
LOGGER.log(Level.SEVERE, "Failed loading character.", e);
}
return player;
}
@@ -7041,7 +7041,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Could not restore classes for " + player.getName() + ": " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Could not restore classes for " + player.getName() + ": " + e.getMessage(), e);
}
return true;
}
@@ -7141,7 +7141,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Could not restore recipe book data:" + e.getMessage(), e);
LOGGER.log(Level.SEVERE, "Could not restore recipe book data:" + e.getMessage(), e);
}
}
@@ -7167,7 +7167,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Could not restore premium items: " + e.getMessage(), e);
LOGGER.log(Level.SEVERE, "Could not restore premium items: " + e.getMessage(), e);
}
}
@@ -7183,7 +7183,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Could not update premium items: " + e.getMessage(), e);
LOGGER.log(Level.SEVERE, "Could not update premium items: " + e.getMessage(), e);
}
}
@@ -7198,7 +7198,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Could not delete premium item: " + e);
LOGGER.log(Level.SEVERE, "Could not delete premium item: " + e);
}
}
@@ -7323,7 +7323,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Could not store char base data: " + this + " - " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Could not store char base data: " + this + " - " + e.getMessage(), e);
}
}
@@ -7353,7 +7353,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Could not store sub class data for " + getName() + ": " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Could not store sub class data for " + getName() + ": " + e.getMessage(), e);
}
}
@@ -7462,7 +7462,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Could not store char effect data: ", e);
LOGGER.log(Level.WARNING, "Could not store char effect data: ", e);
}
}
@@ -7494,7 +7494,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Could not store char item reuse data: ", e);
LOGGER.log(Level.WARNING, "Could not store char item reuse data: ", e);
}
}
@@ -7599,7 +7599,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Error could not delete skill: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Error could not delete skill: " + e.getMessage(), e);
}
}
@@ -7657,12 +7657,12 @@ public final class L2PcInstance extends L2Playable
}
// else
// {
// _log.warning("Could not store new skill, it's null!");
// LOGGER.warning("Could not store new skill, it's null!");
// }
}
catch (Exception e)
{
_log.log(Level.WARNING, "Error could not store char skills: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Error could not store char skills: " + e.getMessage(), e);
}
}
@@ -7696,7 +7696,7 @@ public final class L2PcInstance extends L2Playable
}
catch (SQLException e)
{
_log.log(Level.WARNING, "Error could not store char skills: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Error could not store char skills: " + e.getMessage(), e);
}
}
@@ -7723,7 +7723,7 @@ public final class L2PcInstance extends L2Playable
if (skill == null)
{
_log.warning("Skipped null skill Id: " + id + " Level: " + level + " while restoring player skills for playerObjId: " + getObjectId());
LOGGER.warning("Skipped null skill Id: " + id + " Level: " + level + " while restoring player skills for playerObjId: " + getObjectId());
continue;
}
@@ -7743,7 +7743,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Could not restore character " + this + " skills: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Could not restore character " + this + " skills: " + e.getMessage(), e);
}
}
@@ -7801,7 +7801,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Could not restore " + this + " active effect data: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Could not restore " + this + " active effect data: " + e.getMessage(), e);
}
}
@@ -7867,7 +7867,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Could not restore " + this + " Item Reuse data: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Could not restore " + this + " Item Reuse data: " + e.getMessage(), e);
}
}
@@ -7909,7 +7909,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Failed restoing character " + this + " hennas.", e);
LOGGER.log(Level.SEVERE, "Failed restoing character " + this + " hennas.", e);
}
// Calculate henna modifiers of this player.
@@ -7979,7 +7979,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Failed removing character henna.", e);
LOGGER.log(Level.SEVERE, "Failed removing character henna.", e);
}
// Calculate Henna modifiers of this L2PcInstance
@@ -8033,7 +8033,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Failed saving character henna.", e);
LOGGER.log(Level.SEVERE, "Failed saving character henna.", e);
}
// Send Server->Client HennaInfo packet to this L2PcInstance
@@ -8192,7 +8192,7 @@ public final class L2PcInstance extends L2Playable
{
if (isLocked())
{
_log.warning("Player " + getName() + " tried to restart/logout during class change.");
LOGGER.warning("Player " + getName() + " tried to restart/logout during class change.");
return false;
}
@@ -8524,7 +8524,7 @@ public final class L2PcInstance extends L2Playable
if ((sklTargetType == L2TargetType.GROUND) && (worldPosition == null))
{
_log.info("WorldPosition is null for skill: " + skill.getName() + ", player: " + getName() + ".");
LOGGER.info("WorldPosition is null for skill: " + skill.getName() + ", player: " + getName() + ".");
sendPacket(ActionFailed.STATIC_PACKET);
return false;
}
@@ -10033,7 +10033,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.WARNING, "WARNING: Could not add character sub class for " + getName() + ": " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "WARNING: Could not add character sub class for " + getName() + ": " + e.getMessage(), e);
return false;
}
@@ -10118,7 +10118,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Could not modify sub class for " + getName() + " to class index " + classIndex + ": " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Could not modify sub class for " + getName() + " to class index " + classIndex + ": " + e.getMessage(), e);
// This must be done in order to maintain data consistency.
getSubClasses().remove(classIndex);
@@ -10184,7 +10184,7 @@ public final class L2PcInstance extends L2Playable
final L2PcTemplate pcTemplate = PlayerTemplateData.getInstance().getTemplate(classId);
if (pcTemplate == null)
{
_log.severe("Missing template for classId: " + classId);
LOGGER.severe("Missing template for classId: " + classId);
throw new Error();
}
// Set the template of the L2PcInstance
@@ -10262,7 +10262,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Could not switch " + getName() + "'s sub class to class index " + classIndex + ": " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Could not switch " + getName() + "'s sub class to class index " + classIndex + ": " + e.getMessage(), e);
return false;
}
}
@@ -10530,7 +10530,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "", e);
LOGGER.log(Level.SEVERE, "", e);
}
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerLogin(this), this);
@@ -10995,7 +10995,7 @@ public final class L2PcInstance extends L2Playable
if ((item == null) || (item.getOwnerId() != getObjectId()))
{
_log.finest(getObjectId() + ": player tried to " + action + " item he is not owner of");
LOGGER.finest(getObjectId() + ": player tried to " + action + " item he is not owner of");
return false;
}
@@ -11126,7 +11126,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "deleteMe()", e);
LOGGER.log(Level.SEVERE, "deleteMe()", e);
}
// Set the online Flag to True or False and update the characters table of the database with online status and lastAccess (called when login and logout)
@@ -11134,13 +11134,13 @@ public final class L2PcInstance extends L2Playable
{
if (!isOnline())
{
_log.log(Level.SEVERE, "deleteMe() called on offline character " + this, new RuntimeException());
LOGGER.log(Level.SEVERE, "deleteMe() called on offline character " + this, new RuntimeException());
}
setOnlineStatus(false, true);
}
catch (Exception e)
{
_log.log(Level.SEVERE, "deleteMe()", e);
LOGGER.log(Level.SEVERE, "deleteMe()", e);
}
try
@@ -11152,7 +11152,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "deleteMe()", e);
LOGGER.log(Level.SEVERE, "deleteMe()", e);
}
try
@@ -11164,7 +11164,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "deleteMe()", e);
LOGGER.log(Level.SEVERE, "deleteMe()", e);
}
// remove combat flag
@@ -11191,7 +11191,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "deleteMe()", e);
LOGGER.log(Level.SEVERE, "deleteMe()", e);
}
try
@@ -11208,7 +11208,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "deleteMe()", e);
LOGGER.log(Level.SEVERE, "deleteMe()", e);
}
try
@@ -11220,7 +11220,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "deleteMe()", e);
LOGGER.log(Level.SEVERE, "deleteMe()", e);
}
// Recommendations must be saved before task (timer) is canceled
@@ -11230,7 +11230,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "deleteMe()", e);
LOGGER.log(Level.SEVERE, "deleteMe()", e);
}
// Stop the HP/MP/CP Regeneration task (scheduled tasks)
try
@@ -11239,7 +11239,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "deleteMe()", e);
LOGGER.log(Level.SEVERE, "deleteMe()", e);
}
try
@@ -11248,7 +11248,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "deleteMe()", e);
LOGGER.log(Level.SEVERE, "deleteMe()", e);
}
// Stop crafting, if in progress
@@ -11258,7 +11258,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "deleteMe()", e);
LOGGER.log(Level.SEVERE, "deleteMe()", e);
}
// Cancel Attak or Cast
@@ -11268,7 +11268,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "deleteMe()", e);
LOGGER.log(Level.SEVERE, "deleteMe()", e);
}
if (isChannelized())
@@ -11289,7 +11289,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "deleteMe()", e);
LOGGER.log(Level.SEVERE, "deleteMe()", e);
}
// If a Party is in progress, leave it (and festival party)
@@ -11301,7 +11301,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "deleteMe()", e);
LOGGER.log(Level.SEVERE, "deleteMe()", e);
}
}
@@ -11326,7 +11326,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "deleteMe()", e);
LOGGER.log(Level.SEVERE, "deleteMe()", e);
} // returns pet to control item
}
@@ -11343,7 +11343,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "deleteMe()", e);
LOGGER.log(Level.SEVERE, "deleteMe()", e);
}
}
@@ -11363,7 +11363,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "deleteMe()", e);
LOGGER.log(Level.SEVERE, "deleteMe()", e);
}
}
@@ -11383,7 +11383,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "deleteMe()", e);
LOGGER.log(Level.SEVERE, "deleteMe()", e);
}
// remove player from instance and set spawn location if any
@@ -11413,7 +11413,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "deleteMe()", e);
LOGGER.log(Level.SEVERE, "deleteMe()", e);
}
// TvT Event removal
@@ -11423,7 +11423,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "deleteMe()", e);
LOGGER.log(Level.SEVERE, "deleteMe()", e);
}
// Update database with items in its inventory and remove them from the world
@@ -11433,7 +11433,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "deleteMe()", e);
LOGGER.log(Level.SEVERE, "deleteMe()", e);
}
// Update database with items in its warehouse and remove them from the world
@@ -11443,7 +11443,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "deleteMe()", e);
LOGGER.log(Level.SEVERE, "deleteMe()", e);
}
if (Config.WAREHOUSE_CACHE)
{
@@ -11456,7 +11456,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "deleteMe()", e);
LOGGER.log(Level.SEVERE, "deleteMe()", e);
}
try
@@ -11465,7 +11465,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "deleteMe()", e);
LOGGER.log(Level.SEVERE, "deleteMe()", e);
}
if (isCursedWeaponEquipped())
@@ -11476,7 +11476,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "deleteMe()", e);
LOGGER.log(Level.SEVERE, "deleteMe()", e);
}
}
@@ -11515,7 +11515,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Exception on deleteMe() notifyFriends: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Exception on deleteMe() notifyFriends: " + e.getMessage(), e);
}
stopAutoSaveTask();
@@ -12304,7 +12304,7 @@ public final class L2PcInstance extends L2Playable
{
if (killer == null)
{
_log.warning(this + " called calculateDeathPenaltyBuffLevel with killer null!");
LOGGER.warning(this + " called calculateDeathPenaltyBuffLevel with killer null!");
return;
}
@@ -12678,7 +12678,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Failed to store Pet [NpcId: " + petId + "] data", e);
LOGGER.log(Level.SEVERE, "Failed to store Pet [NpcId: " + petId + "] data", e);
}
}
@@ -12829,7 +12829,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Could not update character teleport bookmark data: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Could not update character teleport bookmark data: " + e.getMessage(), e);
}
}
@@ -12851,7 +12851,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Could not delete character teleport bookmark data: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Could not delete character teleport bookmark data: " + e.getMessage(), e);
}
sendPacket(new ExGetBookMarkInfoPacket(this));
}
@@ -13003,7 +13003,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Could not insert character teleport bookmark data: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Could not insert character teleport bookmark data: " + e.getMessage(), e);
}
sendPacket(new ExGetBookMarkInfoPacket(this));
}
@@ -13024,7 +13024,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Failed restoing character teleport bookmark.", e);
LOGGER.log(Level.SEVERE, "Failed restoing character teleport bookmark.", e);
}
}
@@ -13259,7 +13259,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Error found in " + getName() + "'s FriendList: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Error found in " + getName() + "'s FriendList: " + e.getMessage(), e);
}
}
@@ -13356,7 +13356,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Could not store recipe shop for playerId " + getObjectId() + ": ", e);
LOGGER.log(Level.SEVERE, "Could not store recipe shop for playerId " + getObjectId() + ": ", e);
}
}
}
@@ -13382,7 +13382,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Could not restore recipe shop list data for playerId: " + getObjectId(), e);
LOGGER.log(Level.SEVERE, "Could not restore recipe shop list data for playerId: " + getObjectId(), e);
}
}
@@ -13624,7 +13624,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Exception on removeFromBossZone(): " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Exception on removeFromBossZone(): " + e.getMessage(), e);
}
}
@@ -13661,12 +13661,12 @@ public final class L2PcInstance extends L2Playable
if (nextLevel == -1)
{
_log.info("Removing skill " + skill + " from player " + toString());
LOGGER.info("Removing skill " + skill + " from player " + toString());
removeSkill(skill, true); // there is no lower skill
}
else
{
_log.info("Decreasing skill " + skill + " to " + nextLevel + " for player " + toString());
LOGGER.info("Decreasing skill " + skill + " to " + nextLevel + " for player " + toString());
addSkill(SkillData.getInstance().getSkill(skill.getId(), nextLevel), true); // replace with lower one
}
}
@@ -13810,7 +13810,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Could not check Items in Pet Inventory for playerId: " + getObjectId(), e);
LOGGER.log(Level.SEVERE, "Could not check Items in Pet Inventory for playerId: " + getObjectId(), e);
}
}
@@ -13861,7 +13861,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Could not restore Recommendations for player: " + getObjectId(), e);
LOGGER.log(Level.SEVERE, "Could not restore Recommendations for player: " + getObjectId(), e);
}
return _time_left;
}
@@ -13895,7 +13895,7 @@ public final class L2PcInstance extends L2Playable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Could not update Recommendations for player: " + getObjectId(), e);
LOGGER.log(Level.SEVERE, "Could not update Recommendations for player: " + getObjectId(), e);
}
}
@@ -556,7 +556,7 @@ public class L2PetInstance extends L2Summon
final IItemHandler handler = ItemHandler.getInstance().getHandler(target.getEtcItem());
if (handler == null)
{
_log.warning("No item handler registered for item ID: " + target.getId() + ".");
LOGGER.warning("No item handler registered for item ID: " + target.getId() + ".");
}
else
{
@@ -751,7 +751,7 @@ public class L2PetInstance extends L2Summon
if (removedItem == null)
{
_log.warning("Couldn't destroy pet control item for " + owner + " pet: " + this + " evolve: " + evolve);
LOGGER.warning("Couldn't destroy pet control item for " + owner + " pet: " + this + " evolve: " + evolve);
}
else
{
@@ -1036,7 +1036,7 @@ public class L2PetInstance extends L2Summon
}
catch (Exception e)
{
_log.log(Level.WARNING, "Could not store pet effect data: ", e);
LOGGER.log(Level.WARNING, "Could not store pet effect data: ", e);
}
}
@@ -1075,7 +1075,7 @@ public class L2PetInstance extends L2Summon
}
catch (Exception e)
{
_log.log(Level.WARNING, "Could not restore " + this + " active effect data: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Could not restore " + this + " active effect data: " + e.getMessage(), e);
}
finally
{
@@ -1339,7 +1339,7 @@ public class L2PetInstance extends L2Summon
}
else
{
_log.log(Level.WARNING, "Pet control item null, for pet: " + toString());
LOGGER.log(Level.WARNING, "Pet control item null, for pet: " + toString());
}
super.setName(name);
}
@@ -151,7 +151,7 @@ public class L2RaceManagerInstance extends L2Npc
case 817: // SystemMessageId.MONSRACE_TICKETS_NOW_AVAILABLE_FOR_S1_RACE
{
if (_state != ACCEPTING_BETS)
{// _log.info("Race Initializing");
{// LOGGER.info("Race Initializing");
_state = ACCEPTING_BETS;
startRace();
} // else{_log.info("Race open");}
@@ -172,7 +172,7 @@ public class L2RaceManagerInstance extends L2Npc
}
case 819: // SystemMessageId.MONSRACE_S1_TICKET_SALES_CLOSED
{
// _log.info("Sales closed");
// LOGGER.info("Sales closed");
sm.addInt(_raceNumber);
_state = WAITING;
_minutes = 2;
@@ -188,7 +188,7 @@ public class L2RaceManagerInstance extends L2Npc
}
case 826: // SystemMessageId.MONSRACE_FIRST_PLACE_S1_SECOND_S2
{
// _log.info("Placing");
// LOGGER.info("Placing");
_state = RACE_END;
sm.addInt(MonsterRace.getInstance().getFirstPlace());
sm.addInt(MonsterRace.getInstance().getSecondPlace());
@@ -196,13 +196,13 @@ public class L2RaceManagerInstance extends L2Npc
}
}
// _logn.info("Counter: "+minutes);
// _log.info("State: "+state);
// LOGGER.info("State: "+state);
broadcast(sm);
// _log.info("Player's known: "+getKnownPlayers().size());
// LOGGER.info("Player's known: "+getKnownPlayers().size());
if (type == SystemMessageId.THEY_RE_OFF)
{
// _log.info("Starting race");
// LOGGER.info("Starting race");
_state = STARTING_RACE;
startRace();
_minutes = 5;
@@ -389,7 +389,7 @@ public class L2SepulcherNpcInstance extends L2Npc
}
catch (Exception e)
{
_log.warning(e.getMessage());
LOGGER.warning(e.getMessage());
}
}
}
@@ -283,7 +283,7 @@ public class L2ServitorInstance extends L2Summon implements Runnable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Could not store summon effect data: ", e);
LOGGER.log(Level.WARNING, "Could not store summon effect data: ", e);
}
}
@@ -335,7 +335,7 @@ public class L2ServitorInstance extends L2Summon implements Runnable
}
catch (Exception e)
{
_log.log(Level.WARNING, "Could not restore " + this + " active effect data: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Could not restore " + this + " active effect data: " + e.getMessage(), e);
}
finally
{
@@ -95,7 +95,7 @@ public class L2SignsPriestInstance extends L2Npc
}
catch (Exception e3)
{
_log.warning("Failed to retrieve cabal from bypass command. NpcId: " + getId() + "; Command: " + command);
LOGGER.warning("Failed to retrieve cabal from bypass command. NpcId: " + getId() + "; Command: " + command);
}
}
}
@@ -608,7 +608,7 @@ public class L2SignsPriestInstance extends L2Npc
}
else
{
_log.warning("Problem with HTML text " + path);
LOGGER.warning("Problem with HTML text " + path);
}
}
break;
@@ -709,7 +709,7 @@ public class L2SignsPriestInstance extends L2Npc
}
catch (Exception e)
{
_log.log(Level.WARNING, "SevenSigns: Error occurred while teleporting player: " + e.getMessage(), e);
LOGGER.log(Level.WARNING, "SevenSigns: Error occurred while teleporting player: " + e.getMessage(), e);
}
break;
}
@@ -843,7 +843,7 @@ public class L2SignsPriestInstance extends L2Npc
}
else
{
_log.warning("Problem with HTML text " + SevenSigns.SEVEN_SIGNS_HTML_PATH + "signs_17.htm: " + path);
LOGGER.warning("Problem with HTML text " + SevenSigns.SEVEN_SIGNS_HTML_PATH + "signs_17.htm: " + path);
}
break;
}
@@ -307,7 +307,7 @@ public final class L2TeleporterInstance extends L2Npc
}
else
{
_log.warning("No teleport destination with id:" + val);
LOGGER.warning("No teleport destination with id:" + val);
}
player.sendPacket(ActionFailed.STATIC_PACKET);
@@ -81,7 +81,7 @@ public final class L2TerritoryWardInstance extends L2Attackable
if (getCastle() == null)
{
_log.warning("L2TerritoryWardInstance(" + getName() + ") spawned outside Castle Zone!");
LOGGER.warning("L2TerritoryWardInstance(" + getName() + ") spawned outside Castle Zone!");
}
}
@@ -63,7 +63,7 @@ import com.l2jmobius.gameserver.util.Util;
*/
public class L2VillageMasterInstance extends L2NpcInstance
{
private static Logger _log = Logger.getLogger(L2VillageMasterInstance.class.getName());
private static Logger LOGGER = Logger.getLogger(L2VillageMasterInstance.class.getName());
/**
* Creates a village master.
@@ -352,7 +352,7 @@ public class L2VillageMasterInstance extends L2NpcInstance
}
catch (Exception NumberFormatException)
{
_log.warning(L2VillageMasterInstance.class.getName() + ": Wrong numeric values for command " + command);
LOGGER.warning(L2VillageMasterInstance.class.getName() + ": Wrong numeric values for command " + command);
}
Set<PlayerClass> subsAvailable = null;
@@ -502,7 +502,7 @@ public class L2VillageMasterInstance extends L2NpcInstance
*/
if (!player.getFloodProtectors().getSubclass().tryPerformAction("add subclass"))
{
_log.warning(L2VillageMasterInstance.class.getName() + ": Player " + player.getName() + " has performed a subclass change too fast");
LOGGER.warning(L2VillageMasterInstance.class.getName() + ": Player " + player.getName() + " has performed a subclass change too fast");
return;
}
@@ -570,7 +570,7 @@ public class L2VillageMasterInstance extends L2NpcInstance
*/
if (!player.getFloodProtectors().getSubclass().tryPerformAction("change class"))
{
_log.warning(L2VillageMasterInstance.class.getName() + ": Player " + player.getName() + " has performed a subclass change too fast");
LOGGER.warning(L2VillageMasterInstance.class.getName() + ": Player " + player.getName() + " has performed a subclass change too fast");
return;
}
@@ -661,7 +661,7 @@ public class L2VillageMasterInstance extends L2NpcInstance
*/
if (!player.getFloodProtectors().getSubclass().tryPerformAction("change class"))
{
_log.warning(L2VillageMasterInstance.class.getName() + ": Player " + player.getName() + " has performed a subclass change too fast");
LOGGER.warning(L2VillageMasterInstance.class.getName() + ": Player " + player.getName() + " has performed a subclass change too fast");
return;
}
@@ -1248,7 +1248,7 @@ public class L2VillageMasterInstance extends L2NpcInstance
}
catch (PatternSyntaxException e)
{
_log.warning("ERROR: Wrong pattern for clan name!");
LOGGER.warning("ERROR: Wrong pattern for clan name!");
pattern = Pattern.compile(".*");
}
return pattern.matcher(name).matches();
@@ -107,7 +107,7 @@ public class PetStat extends SummonStat
{
if (getActiveChar() != null)
{
_log.warning("Pet objectId:" + getActiveChar().getObjectId() + ", NpcId:" + getActiveChar().getId() + ", level:" + level + " is missing data from pets_stats table!");
LOGGER.warning("Pet objectId:" + getActiveChar().getObjectId() + ", NpcId:" + getActiveChar().getId() + ", level:" + level + " is missing data from pets_stats table!");
}
throw e;
}
@@ -33,7 +33,7 @@ import com.l2jmobius.gameserver.model.zone.type.L2SwampZone;
public class PlayableStat extends CharStat
{
protected static final Logger _log = Logger.getLogger(PlayableStat.class.getName());
protected static final Logger LOGGER = Logger.getLogger(PlayableStat.class.getName());
public PlayableStat(L2Playable activeChar)
{
@@ -179,7 +179,7 @@ public class PlayableStat extends CharStat
{
if (value < 0)
{
_log.warning("wrong usage");
LOGGER.warning("wrong usage");
return false;
}
final long currentSp = getSp();
@@ -30,7 +30,7 @@ import com.l2jmobius.gameserver.model.stats.Formulas;
public class CharStatus
{
protected static final Logger _log = Logger.getLogger(CharStatus.class.getName());
protected static final Logger LOGGER = Logger.getLogger(CharStatus.class.getName());
private final L2Character _activeChar;
@@ -402,7 +402,7 @@ public class CharStatus
}
catch (Exception e)
{
_log.log(Level.SEVERE, "", e);
LOGGER.log(Level.SEVERE, "", e);
}
}
}
@@ -35,7 +35,7 @@ import com.l2jmobius.gameserver.taskmanager.AttackStanceTaskManager;
*/
public final class CubicAction implements Runnable
{
private static final Logger _log = Logger.getLogger(CubicAction.class.getName());
private static final Logger LOGGER = Logger.getLogger(CubicAction.class.getName());
private final L2CubicInstance _cubic;
private final AtomicInteger _currentCount = new AtomicInteger();
private final int _chance;
@@ -181,7 +181,7 @@ public final class CubicAction implements Runnable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "", e);
LOGGER.log(Level.SEVERE, "", e);
}
}
}
@@ -30,7 +30,7 @@ import com.l2jmobius.gameserver.network.serverpackets.MagicSkillUse;
*/
public class CubicHeal implements Runnable
{
private static final Logger _log = Logger.getLogger(CubicHeal.class.getName());
private static final Logger LOGGER = Logger.getLogger(CubicHeal.class.getName());
private final L2CubicInstance _cubic;
public CubicHeal(L2CubicInstance cubic)
@@ -77,7 +77,7 @@ public class CubicHeal implements Runnable
}
catch (Exception e)
{
_log.log(Level.SEVERE, "", e);
LOGGER.log(Level.SEVERE, "", e);
}
}
}
@@ -29,7 +29,7 @@ import com.l2jmobius.gameserver.network.serverpackets.SocialAction;
*/
public class TrapTask implements Runnable
{
private static final Logger _log = Logger.getLogger(TrapTask.class.getName());
private static final Logger LOGGER = Logger.getLogger(TrapTask.class.getName());
private static final int TICK = 1000; // 1s
private final L2TrapInstance _trap;
@@ -84,7 +84,7 @@ public class TrapTask implements Runnable
}
catch (Exception e)
{
_log.severe(TrapTask.class.getSimpleName() + ": " + e.getMessage());
LOGGER.severe(TrapTask.class.getSimpleName() + ": " + e.getMessage());
_trap.unSummon();
}
}
@@ -29,7 +29,7 @@ import com.l2jmobius.gameserver.network.serverpackets.LeaveWorld;
*/
public class GameGuardCheckTask implements Runnable
{
private static final Logger _log = Logger.getLogger(GameGuardCheckTask.class.getName());
private static final Logger LOGGER = Logger.getLogger(GameGuardCheckTask.class.getName());
private final L2PcInstance _player;
@@ -53,7 +53,7 @@ public class GameGuardCheckTask implements Runnable
}
AdminData.getInstance().broadcastMessageToGMs("Client " + client + " failed to reply GameGuard query and is being kicked!");
_log.info("Client " + client + " failed to reply GameGuard query and is being kicked!");
LOGGER.info("Client " + client + " failed to reply GameGuard query and is being kicked!");
client.close(LeaveWorld.STATIC_PACKET);
}
}
@@ -35,7 +35,7 @@ import com.l2jmobius.gameserver.network.Disconnection;
*/
public final class IllegalPlayerActionTask implements Runnable
{
private static final Logger _log = Logger.getLogger("audit");
private static final Logger LOGGER = Logger.getLogger("audit");
private final String _message;
private final IllegalActionPunishmentType _punishment;
@@ -81,7 +81,7 @@ public final class IllegalPlayerActionTask implements Runnable
//@formatter:off
record.setParameters(new Object[] { _actor, _punishment });
//@formatter:on
_log.log(record);
LOGGER.log(record);
AdminData.getInstance().broadcastMessageToGMs(_message);
if (!_actor.isGM())

Some files were not shown because too many files have changed in this diff Show More