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

View File

@@ -119,7 +119,7 @@ public final class DenOfEvil extends AbstractNpcAI
final L2EffectZone zone = ZoneManager.getInstance().getZone(npc, L2EffectZone.class);
if (zone == null)
{
_log.warning("NPC " + npc + " spawned outside of L2EffectZone, check your zone coords! X:" + npc.getX() + " Y:" + npc.getY() + " Z:" + npc.getZ());
LOGGER.warning("NPC " + npc + " spawned outside of L2EffectZone, check your zone coords! X:" + npc.getX() + " Y:" + npc.getY() + " Z:" + npc.getZ());
return null;
}
final int skillId = getSkillIdByNpcId(npc.getId());
@@ -144,7 +144,7 @@ public final class DenOfEvil extends AbstractNpcAI
final L2EffectZone zone = ZoneManager.getInstance().getZone(npc, L2EffectZone.class);
if (zone == null)
{
_log.warning("NPC " + npc + " killed outside of L2EffectZone, check your zone coords! X:" + npc.getX() + " Y:" + npc.getY() + " Z:" + npc.getZ());
LOGGER.warning("NPC " + npc + " killed outside of L2EffectZone, check your zone coords! X:" + npc.getX() + " Y:" + npc.getY() + " Z:" + npc.getZ());
return null;
}
final int skillId = getSkillIdByNpcId(npc.getId());

View File

@@ -95,11 +95,11 @@ public class HandysBlockCheckerEvent extends AbstractNpcAI
if (Config.ENABLE_BLOCK_CHECKER_EVENT)
{
new HandysBlockCheckerEvent();
_log.info("Handy's Block Checker Event is enabled");
LOGGER.info("Handy's Block Checker Event is enabled");
}
else
{
_log.info("Handy's Block Checker Event is disabled");
LOGGER.info("Handy's Block Checker Event is disabled");
}
}
}

View File

@@ -135,7 +135,7 @@ public final class Parade extends AbstractNpcAI
// final long diff = timeLeftMilli(8, 0, 0), cycle = 600000L;
// ThreadPoolManager.scheduleAtFixedRate(new Start(), 180000L, cycle);
_log.info("Fantasy Isle: Parade starting at " + new SimpleDateFormat("yyyy/MM/dd HH:mm").format(System.currentTimeMillis() + diff) + " and is scheduled each next " + (cycle / 3600000) + " hours.");
LOGGER.info("Fantasy Isle: Parade starting at " + new SimpleDateFormat("yyyy/MM/dd HH:mm").format(System.currentTimeMillis() + diff) + " and is scheduled each next " + (cycle / 3600000) + " hours.");
}
void load()

View File

@@ -302,7 +302,7 @@ public final class TalentShow extends AbstractNpcAI
hourDiff *= 3600000;
minDiff *= 60000;
diff = hourDiff + minDiff;
_log.info("Fantasy Isle: MC show script starting at " + (new SimpleDateFormat("dd/MM/yyyy HH:mm:ss")).format(System.currentTimeMillis() + diff) + " and is scheduled each next 4 hours.");
LOGGER.info("Fantasy Isle: MC show script starting at " + (new SimpleDateFormat("dd/MM/yyyy HH:mm:ss")).format(System.currentTimeMillis() + diff) + " and is scheduled each next 4 hours.");
startQuestTimer("Start", diff, null, null); // first start
}
@@ -362,7 +362,7 @@ public final class TalentShow extends AbstractNpcAI
{
if ((event == null) || event.isEmpty())
{
_log.warning("MC_Show: Null/Empty event for npc " + npc + " and player " + player + "!");
LOGGER.warning("MC_Show: Null/Empty event for npc " + npc + " and player " + player + "!");
return null;
}

View File

@@ -54,7 +54,7 @@ import ai.areas.Gracia.vehicles.SoIController.SoIController;
*/
public final class GraciaLoader
{
private static final Logger _log = Logger.getLogger(GraciaLoader.class.getName());
private static final Logger LOGGER = Logger.getLogger(GraciaLoader.class.getName());
private static final Class<?>[] SCRIPTS =
{
@@ -95,7 +95,7 @@ public final class GraciaLoader
public static void main(String[] args)
{
_log.info(GraciaLoader.class.getSimpleName() + ": Loading Gracia related scripts.");
LOGGER.info(GraciaLoader.class.getSimpleName() + ": Loading Gracia related scripts.");
for (Class<?> script : SCRIPTS)
{
try
@@ -104,7 +104,7 @@ public final class GraciaLoader
}
catch (Exception e)
{
_log.log(Level.SEVERE, GraciaLoader.class.getSimpleName() + ": Failed loading " + script.getSimpleName() + ":", e);
LOGGER.log(Level.SEVERE, GraciaLoader.class.getSimpleName() + ": Failed loading " + script.getSimpleName() + ":", e);
}
}
}

View File

@@ -339,7 +339,7 @@ public class HallOfErosionAttack extends AbstractNpcAI
world.setStatus(0);
((HEAWorld) world).startTime = System.currentTimeMillis();
InstanceManager.getInstance().addWorld(world);
_log.info("Hall Of Erosion Attack started " + template + " Instance: " + world.getInstanceId() + " created by player: " + player.getName());
LOGGER.info("Hall Of Erosion Attack started " + template + " Instance: " + world.getInstanceId() + " created by player: " + player.getName());
if (player.isInParty())
{

View File

@@ -340,7 +340,7 @@ public class HallOfErosionDefence extends AbstractNpcAI
world.setStatus(0);
((HEDWorld) world).startTime = System.currentTimeMillis();
InstanceManager.getInstance().addWorld(world);
_log.info("Hall Of Erosion Defence started " + template + " Instance: " + world.getInstanceId() + " created by player: " + player.getName());
LOGGER.info("Hall Of Erosion Defence started " + template + " Instance: " + world.getInstanceId() + " created by player: " + player.getName());
if (player.isInParty())
{

View File

@@ -277,7 +277,7 @@ public class HallOfSufferingAttack extends AbstractNpcAI
world.setStatus(0);
((HSAWorld) world).storeTime[0] = System.currentTimeMillis();
InstanceManager.getInstance().addWorld(world);
_log.info("Hall Of Suffering Attack started " + template + " Instance: " + world.getInstanceId() + " created by player: " + player.getName());
LOGGER.info("Hall Of Suffering Attack started " + template + " Instance: " + world.getInstanceId() + " created by player: " + player.getName());
runTumors((HSAWorld) world);
if (player.getParty() == null)

View File

@@ -277,7 +277,7 @@ public class HallOfSufferingDefence extends AbstractNpcAI
world.setStatus(0);
((HSDWorld) world).storeTime[0] = System.currentTimeMillis();
InstanceManager.getInstance().addWorld(world);
_log.info("Hall Of Suffering Defence started " + template + " Instance: " + world.getInstanceId() + " created by player: " + player.getName());
LOGGER.info("Hall Of Suffering Defence started " + template + " Instance: " + world.getInstanceId() + " created by player: " + player.getName());
runTumors((HSDWorld) world);
if (player.getParty() == null)

View File

@@ -324,7 +324,7 @@ public class HeartInfinityAttack extends AbstractNpcAI
world.setTemplateId(INSTANCEID);
world.setStatus(0);
InstanceManager.getInstance().addWorld(world);
_log.info("Heart Infinity Attack started " + template + " Instance: " + world.getInstanceId() + " created by player: " + player.getName());
LOGGER.info("Heart Infinity Attack started " + template + " Instance: " + world.getInstanceId() + " created by player: " + player.getName());
if ((player.getParty() == null) || (player.getParty().getCommandChannel() == null))
{

View File

@@ -337,7 +337,7 @@ public class HeartInfinityDefence extends AbstractNpcAI
world.setTemplateId(INSTANCEID);
world.setStatus(0);
InstanceManager.getInstance().addWorld(world);
_log.info("Heart Infinity Defence started " + template + " Instance: " + world.getInstanceId() + " created by player: " + player.getName());
LOGGER.info("Heart Infinity Defence started " + template + " Instance: " + world.getInstanceId() + " created by player: " + player.getName());
if (player.isGM())
{

View File

@@ -839,7 +839,7 @@ public class SeedOfDestruction extends AbstractNpcAI
{
if (DEBUG || player.isGM())
{
_log.info("SoD is now in test mode - DEBUG OR GM PLAYER");
LOGGER.info("SoD is now in test mode - DEBUG OR GM PLAYER");
return true;
}
if (player.getParty() == null)
@@ -941,7 +941,7 @@ public class SeedOfDestruction extends AbstractNpcAI
door.setIsAttackableDoor(true);
}
}
_log.info("Seed of Destruction started " + template + " Instance: " + instanceId + " created by player: " + player.getName());
LOGGER.info("Seed of Destruction started " + template + " Instance: " + instanceId + " created by player: " + player.getName());
((SODWorld) world).ZoneWaitForTP = true;
teleto.instanceId = instanceId;
@@ -1610,7 +1610,7 @@ public class SeedOfDestruction extends AbstractNpcAI
}
else if (npc.getId() == SPAWN_DEVICE)
{
_log.info("portal kill");
LOGGER.info("portal kill");
final Skill skilla = SkillData.getInstance().getSkill(5699, 7);
skilla.applyEffects(world._tiat, world._tiat);
final Skill skillb = SkillData.getInstance().getSkill(5700, 7);
@@ -1674,7 +1674,7 @@ public class SeedOfDestruction extends AbstractNpcAI
{
if (DEBUG)
{
_log.info("FirstTalkEvent: NPC " + npc.getId() + ".");
LOGGER.info("FirstTalkEvent: NPC " + npc.getId() + ".");
}
if (npc.getId() == TELEPORT)

View File

@@ -74,7 +74,7 @@ public abstract class AirShipController extends AbstractNpcAI
}
}
public static final Logger _log = Logger.getLogger(AirShipController.class.getName());
public static final Logger LOGGER = Logger.getLogger(AirShipController.class.getName());
protected int _dockZone = 0;
protected int _shipSpawnX = 0;
protected int _shipSpawnY = 0;
@@ -350,7 +350,7 @@ public abstract class AirShipController extends AbstractNpcAI
final L2ScriptZone zone = ZoneManager.getInstance().getZoneById(_dockZone, L2ScriptZone.class);
if (zone == null)
{
_log.log(Level.WARNING, getName() + ": Invalid zone " + _dockZone + ", controller disabled");
LOGGER.log(Level.WARNING, getName() + ": Invalid zone " + _dockZone + ", controller disabled");
_isBusy = true;
return;
}
@@ -360,7 +360,7 @@ public abstract class AirShipController extends AbstractNpcAI
{
if (_arrivalPath.length == 0)
{
_log.log(Level.WARNING, getName() + ": Zero arrival path length.");
LOGGER.log(Level.WARNING, getName() + ": Zero arrival path length.");
_arrivalPath = null;
}
else
@@ -368,7 +368,7 @@ public abstract class AirShipController extends AbstractNpcAI
p = _arrivalPath[_arrivalPath.length - 1];
if (!zone.isInsideZone(p.getLocation()))
{
_log.log(Level.WARNING, getName() + ": Arrival path finish point (" + p.getX() + "," + p.getY() + "," + p.getZ() + ") not in zone " + _dockZone);
LOGGER.log(Level.WARNING, getName() + ": Arrival path finish point (" + p.getX() + "," + p.getY() + "," + p.getZ() + ") not in zone " + _dockZone);
_arrivalPath = null;
}
}
@@ -377,7 +377,7 @@ public abstract class AirShipController extends AbstractNpcAI
{
if (!ZoneManager.getInstance().getZoneById(_dockZone, L2ScriptZone.class).isInsideZone(_shipSpawnX, _shipSpawnY, _shipSpawnZ))
{
_log.log(Level.WARNING, getName() + ": Arrival path is null and spawn point not in zone " + _dockZone + ", controller disabled");
LOGGER.log(Level.WARNING, getName() + ": Arrival path is null and spawn point not in zone " + _dockZone + ", controller disabled");
_isBusy = true;
return;
}
@@ -387,7 +387,7 @@ public abstract class AirShipController extends AbstractNpcAI
{
if (_departPath.length == 0)
{
_log.log(Level.WARNING, getName() + ": Zero depart path length.");
LOGGER.log(Level.WARNING, getName() + ": Zero depart path length.");
_departPath = null;
}
else
@@ -395,7 +395,7 @@ public abstract class AirShipController extends AbstractNpcAI
p = _departPath[_departPath.length - 1];
if (zone.isInsideZone(p.getLocation()))
{
_log.log(Level.WARNING, getName() + ": Departure path finish point (" + p.getX() + "," + p.getY() + "," + p.getZ() + ") in zone " + _dockZone);
LOGGER.log(Level.WARNING, getName() + ": Departure path finish point (" + p.getX() + "," + p.getY() + "," + p.getZ() + ") in zone " + _dockZone);
_departPath = null;
}
}
@@ -405,13 +405,13 @@ public abstract class AirShipController extends AbstractNpcAI
{
if (_fuelTable == null)
{
_log.log(Level.WARNING, getName() + ": Fuel consumption not defined.");
LOGGER.log(Level.WARNING, getName() + ": Fuel consumption not defined.");
}
else
{
if (_teleportsTable.length != _fuelTable.length)
{
_log.log(Level.WARNING, getName() + ": Fuel consumption not match teleport list.");
LOGGER.log(Level.WARNING, getName() + ": Fuel consumption not match teleport list.");
}
else
{

View File

@@ -62,9 +62,9 @@ public final class HellboundEngine extends AbstractNpcAI
startQuestTimer(UPDATE_EVENT, 1000, null, null);
_log.info(HellboundEngine.class.getSimpleName() + ": Level: " + getLevel());
_log.info(HellboundEngine.class.getSimpleName() + ": Trust: " + getTrust());
_log.info(HellboundEngine.class.getSimpleName() + ": Status: " + (isLocked() ? "locked." : "unlocked."));
LOGGER.info(HellboundEngine.class.getSimpleName() + ": Level: " + getLevel());
LOGGER.info(HellboundEngine.class.getSimpleName() + ": Trust: " + getTrust());
LOGGER.info(HellboundEngine.class.getSimpleName() + ": Status: " + (isLocked() ? "locked." : "unlocked."));
}
@Override
@@ -144,11 +144,11 @@ public final class HellboundEngine extends AbstractNpcAI
if (added > 0)
{
_log.info(getClass().getSimpleName() + ": Spawned " + added + " NPCs.");
LOGGER.info(getClass().getSimpleName() + ": Spawned " + added + " NPCs.");
}
if (deleted > 0)
{
_log.info(getClass().getSimpleName() + ": Removed " + deleted + " NPCs.");
LOGGER.info(getClass().getSimpleName() + ": Removed " + deleted + " NPCs.");
}
}
@@ -172,7 +172,7 @@ public final class HellboundEngine extends AbstractNpcAI
return;
}
_log.info(HellboundEngine.class.getSimpleName() + ": Changing level from " + getLevel() + " to " + lvl + ".");
LOGGER.info(HellboundEngine.class.getSimpleName() + ": Changing level from " + getLevel() + " to " + lvl + ".");
GlobalVariablesManager.getInstance().set("HBLevel", lvl);
}
@@ -282,14 +282,14 @@ public final class HellboundEngine extends AbstractNpcAI
}
catch (Exception e)
{
_log.warning(getClass().getSimpleName() + " : Doors problem!" + e.getMessage());
LOGGER.warning(getClass().getSimpleName() + " : Doors problem!" + e.getMessage());
}
}
if (_cachedLevel > 0)
{
Broadcast.toAllOnlinePlayers(ANNOUNCEMENT.replace("%lvl%", String.valueOf(newLevel)));
_log.info(HellboundEngine.class.getSimpleName() + ": New level: " + newLevel);
LOGGER.info(HellboundEngine.class.getSimpleName() + ": New level: " + newLevel);
}
_cachedLevel = newLevel;
}

View File

@@ -67,7 +67,7 @@ import quests.Q00133_ThatsBloodyHot.Q00133_ThatsBloodyHot;
*/
public final class HellboundLoader
{
private static final Logger _log = Logger.getLogger(HellboundLoader.class.getName());
private static final Logger LOGGER = Logger.getLogger(HellboundLoader.class.getName());
private static final Class<?>[] SCRIPTS =
{
@@ -117,7 +117,7 @@ public final class HellboundLoader
public static void main(String[] args)
{
_log.info(HellboundLoader.class.getSimpleName() + ": Loading Hellbound related scripts:");
LOGGER.info(HellboundLoader.class.getSimpleName() + ": Loading Hellbound related scripts:");
// Data
HellboundPointData.getInstance();
HellboundSpawns.getInstance();
@@ -139,7 +139,7 @@ public final class HellboundLoader
}
catch (Exception e)
{
_log.severe(HellboundLoader.class.getSimpleName() + ": Failed loading " + script.getSimpleName() + ":" + e.getMessage());
LOGGER.severe(HellboundLoader.class.getSimpleName() + ": Failed loading " + script.getSimpleName() + ":" + e.getMessage());
}
}
}

View File

@@ -626,7 +626,7 @@ public final class Antharas extends AbstractNpcAI
{
if (!zone.isCharacterInZone(attacker) || (getStatus() != IN_FIGHT))
{
_log.warning(getClass().getSimpleName() + ": Player " + attacker.getName() + " attacked Antharas in invalid conditions!");
LOGGER.warning(getClass().getSimpleName() + ": Player " + attacker.getName() + " attacked Antharas in invalid conditions!");
attacker.teleToLocation(80464, 152294, -3534);
}

View File

@@ -314,7 +314,7 @@ public final class Sailren extends AbstractNpcAI
{
if (STATUS == Status.IN_FIGHT)
{
_log.info(getClass().getSimpleName() + ": Script is being unloaded while Sailren is active, clearing zone.");
LOGGER.info(getClass().getSimpleName() + ": Script is being unloaded while Sailren is active, clearing zone.");
notifyEvent("TIME_OUT", null, null);
}
return super.unload(removeFromList);

View File

@@ -257,7 +257,7 @@ public final class AltarsOfSacrifice extends AbstractNpcAI
@Override
public boolean unload(boolean removeFromList)
{
_log.info(getClass().getSimpleName() + ": Unloading altars due to script unloading.");
LOGGER.info(getClass().getSimpleName() + ": Unloading altars due to script unloading.");
for (Altar altar : _altars)
{
@@ -281,7 +281,7 @@ public final class AltarsOfSacrifice extends AbstractNpcAI
}
catch (Exception e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Failed to spawn altar boss.", e);
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Failed to spawn altar boss.", e);
// let's try again to spawn it in 5 seconds
startQuestTimer(event, 5000, null, null);
}

View File

@@ -228,7 +228,7 @@ public class AvantGarde extends AbstractNpcAI
}
else
{
_log.warning("Invalid Sub-Class Skill Id: " + skillIdVar + " for player " + player.getName() + "!");
LOGGER.warning("Invalid Sub-Class Skill Id: " + skillIdVar + " for player " + player.getName() + "!");
}
}
else if (!qvar.isEmpty() && !qvar.equals("0"))
@@ -246,19 +246,19 @@ public class AvantGarde extends AbstractNpcAI
itemInstance = player.getWarehouse().getItemByObjectId(itemObjId);
if (itemInstance != null)
{
_log.warning("Somehow " + player.getName() + " put a certification book into warehouse!");
LOGGER.warning("Somehow " + player.getName() + " put a certification book into warehouse!");
player.getWarehouse().destroyItem("CancelCertification", itemInstance, 1, player, false);
}
else
{
_log.warning("Somehow " + player.getName() + " deleted a certification book!");
LOGGER.warning("Somehow " + player.getName() + " deleted a certification book!");
}
}
player.getVariables().set(qvarName, "0");
}
else
{
_log.warning("Invalid item object Id: " + qvar + " for player " + player.getName() + "!");
LOGGER.warning("Invalid item object Id: " + qvar + " for player " + player.getName() + "!");
}
}
}
@@ -275,7 +275,7 @@ public class AvantGarde extends AbstractNpcAI
final L2ItemInstance item = player.getInventory().getItemByItemId(itemId);
if (item != null)
{
_log.warning(getClass().getName() + ": player " + player + " had 'extra' certification skill books while cancelling sub-class certifications!");
LOGGER.warning(getClass().getName() + ": player " + player + " had 'extra' certification skill books while cancelling sub-class certifications!");
player.destroyItem("CancelCertificationExtraBooks", item, npc, false);
}
}

View File

@@ -1442,7 +1442,7 @@ public final class CastleChamberlain extends AbstractNpcAI
}
default:
{
_log.warning(getClass().getSimpleName() + ": Player " + player.getName() + " (" + player.getObjectId() + ") send unknown request id " + evt.getRequest() + "!");
LOGGER.warning(getClass().getSimpleName() + ": Player " + player.getName() + " (" + player.getObjectId() + ") send unknown request id " + evt.getRequest() + "!");
}
}
}

View File

@@ -163,7 +163,7 @@ public final class ManorManager extends AbstractNpcAI
}
default:
{
_log.warning(getClass().getSimpleName() + ": Player " + player.getName() + " (" + player.getObjectId() + ") send unknown request id " + evt.getRequest() + "!");
LOGGER.warning(getClass().getSimpleName() + ": Player " + player.getName() + " (" + player.getObjectId() + ") send unknown request id " + evt.getRequest() + "!");
}
}
}

View File

@@ -149,7 +149,7 @@ public final class MercenaryCaptain extends AbstractNpcAI
}
default:
{
_log.warning(MercenaryCaptain.class.getSimpleName() + ": Unknown strider type: " + type);
LOGGER.warning(MercenaryCaptain.class.getSimpleName() + ": Unknown strider type: " + type);
return null;
}
}

View File

@@ -75,7 +75,7 @@ public final class Selina extends AbstractNpcAI
}
else
{
_log.warning(Selina.class.getSimpleName() + " AI: player " + player + " sent invalid bypass: " + event);
LOGGER.warning(Selina.class.getSimpleName() + " AI: player " + player + " sent invalid bypass: " + event);
}
return "31556-02.html";
}

View File

@@ -84,7 +84,7 @@ public final class FortressOfResistance extends ClanHallSiegeEngine
}
catch (Exception e)
{
_log.warning(getName() + ": Couldnt set the Bloody Lord Nurka spawn");
LOGGER.warning(getName() + ": Couldnt set the Bloody Lord Nurka spawn");
e.printStackTrace();
}
}

View File

@@ -291,7 +291,7 @@ public final class RainbowSpringsChateau extends ClanHallSiegeEngine
}
else
{
_log.warning("CHSiegeManager: No Date setted for RainBow Springs Chateau Clan hall siege!. SIEGE CANCELED!");
LOGGER.warning("CHSiegeManager: No Date setted for RainBow Springs Chateau Clan hall siege!. SIEGE CANCELED!");
}
}
}
@@ -691,7 +691,7 @@ public final class RainbowSpringsChateau extends ClanHallSiegeEngine
{
if ((arena < 0) || (arena > 3))
{
_log.warning("RainbowSptringChateau siege: Wrong arena id passed: " + arena);
LOGGER.warning("RainbowSptringChateau siege: Wrong arena id passed: " + arena);
return;
}
for (L2PcInstance pc : leader.getParty().getMembers())

View File

@@ -249,7 +249,7 @@ public abstract class FlagWar extends ClanHallSiegeEngine
}
catch (Exception e)
{
_log.warning(getName() + "->select_clan_npc->Wrong mahum warrior id: " + var[1]);
LOGGER.warning(getName() + "->select_clan_npc->Wrong mahum warrior id: " + var[1]);
}
if ((id > 0) && ((html = getAllyHtml(id)) != null))
{
@@ -259,7 +259,7 @@ public abstract class FlagWar extends ClanHallSiegeEngine
}
else
{
_log.warning(getName() + " Siege: Not enough parameters to save clan npc for clan: " + clan.getName());
LOGGER.warning(getName() + " Siege: Not enough parameters to save clan npc for clan: " + clan.getName());
}
}
}
@@ -544,7 +544,7 @@ public abstract class FlagWar extends ClanHallSiegeEngine
catch (Exception e)
{
endSiege();
_log.warning(getName() + ": Problems in siege initialization!");
LOGGER.warning(getName() + ": Problems in siege initialization!");
e.printStackTrace();
}
}
@@ -651,7 +651,7 @@ public abstract class FlagWar extends ClanHallSiegeEngine
}
catch (Exception e)
{
_log.warning(getName() + ": Couldnt make clan spawns: " + e.getMessage());
LOGGER.warning(getName() + ": Couldnt make clan spawns: " + e.getMessage());
e.printStackTrace();
}
}
@@ -773,7 +773,7 @@ public abstract class FlagWar extends ClanHallSiegeEngine
if (ClanTable.getInstance().getClan(clanId) == null)
{
_log.warning(getName() + ": Loaded an unexistent clan as attacker! Clan ID: " + clanId);
LOGGER.warning(getName() + ": Loaded an unexistent clan as attacker! Clan ID: " + clanId);
continue;
}
@@ -789,7 +789,7 @@ public abstract class FlagWar extends ClanHallSiegeEngine
}
catch (Exception e)
{
_log.warning(getName() + ".loadAttackers()->" + e.getMessage());
LOGGER.warning(getName() + ".loadAttackers()->" + e.getMessage());
e.printStackTrace();
}
}
@@ -802,7 +802,7 @@ public abstract class FlagWar extends ClanHallSiegeEngine
if (listInstance == null)
{
_log.warning(getName() + ": Tried to load unregistered clan with ID " + clanId);
LOGGER.warning(getName() + ": Tried to load unregistered clan with ID " + clanId);
return;
}
@@ -819,7 +819,7 @@ public abstract class FlagWar extends ClanHallSiegeEngine
}
catch (Exception e)
{
_log.warning(getName() + ".loadAttackerMembers()->" + e.getMessage());
LOGGER.warning(getName() + ".loadAttackerMembers()->" + e.getMessage());
e.printStackTrace();
}
}
@@ -838,7 +838,7 @@ public abstract class FlagWar extends ClanHallSiegeEngine
}
catch (Exception e)
{
_log.warning(getName() + ".saveClan()->" + e.getMessage());
LOGGER.warning(getName() + ".saveClan()->" + e.getMessage());
e.printStackTrace();
}
}
@@ -855,7 +855,7 @@ public abstract class FlagWar extends ClanHallSiegeEngine
}
catch (Exception e)
{
_log.warning(getName() + ".saveNpc()->" + e.getMessage());
LOGGER.warning(getName() + ".saveNpc()->" + e.getMessage());
e.printStackTrace();
}
}
@@ -873,7 +873,7 @@ public abstract class FlagWar extends ClanHallSiegeEngine
}
catch (Exception e)
{
_log.warning(getName() + ".saveMember()->" + e.getMessage());
LOGGER.warning(getName() + ".saveMember()->" + e.getMessage());
e.printStackTrace();
}
}
@@ -894,7 +894,7 @@ public abstract class FlagWar extends ClanHallSiegeEngine
}
catch (Exception e)
{
_log.warning(getName() + ".clearTables()->" + e.getMessage());
LOGGER.warning(getName() + ".clearTables()->" + e.getMessage());
}
}

View File

@@ -60,7 +60,7 @@ public class NpcBuffer extends AbstractNpcAI
private static void print(Exception e)
{
_log.warning(">>>" + e + "<<<");
LOGGER.warning(">>>" + e + "<<<");
if (DEBUG)
{
e.printStackTrace();

View File

@@ -88,7 +88,7 @@ public final class Elpies extends Event
// Check Custom Table - we use custom NPCs
if (!Config.CUSTOM_NPC_DATA)
{
_log.info(getName() + ": Event can't be started because custom NPC table is disabled!");
LOGGER.info(getName() + ": Event can't be started because custom NPC table is disabled!");
eventMaker.sendMessage("Event " + getName() + " can't be started because custom NPC table is disabled!");
return false;
}

View File

@@ -96,7 +96,7 @@ public final class Rabbits extends Event
// Check starting conditions
if (!Config.CUSTOM_NPC_DATA)
{
_log.info(getName() + ": Event can't be started, because custom NPCs are disabled!");
LOGGER.info(getName() + ": Event can't be started, because custom NPCs are disabled!");
eventMaker.sendMessage("Event " + getName() + " can't be started because custom NPCs are disabled!");
return false;
}

View File

@@ -121,7 +121,7 @@ public final class Race extends Event
// Check Custom Table - we use custom NPCs
if (!Config.CUSTOM_NPC_DATA)
{
_log.info(getName() + ": Event can't be started, because custom npc table is disabled!");
LOGGER.info(getName() + ": Event can't be started, because custom npc table is disabled!");
eventMaker.sendMessage("Event " + getName() + " can't be started because custom NPC table is disabled!");
return false;
}

View File

@@ -30,7 +30,7 @@ import handlers.effecthandlers.*;
*/
public final class EffectMasterHandler
{
private static final Logger _log = Logger.getLogger(EffectMasterHandler.class.getName());
private static final Logger LOGGER = Logger.getLogger(EffectMasterHandler.class.getName());
private static final Class<?>[] EFFECTS =
{
@@ -211,11 +211,11 @@ public final class EffectMasterHandler
// And lets try get size
try
{
_log.log(Level.INFO, EffectMasterHandler.class.getSimpleName() + ": Loaded " + EffectHandler.getInstance().size() + " effect handlers.");
LOGGER.log(Level.INFO, EffectMasterHandler.class.getSimpleName() + ": Loaded " + EffectHandler.getInstance().size() + " effect handlers.");
}
catch (Exception e)
{
_log.log(Level.WARNING, "Failed invoking size method for handler: " + EffectMasterHandler.class.getSimpleName(), e);
LOGGER.log(Level.WARNING, "Failed invoking size method for handler: " + EffectMasterHandler.class.getSimpleName(), e);
}
}
}

View File

@@ -305,7 +305,7 @@ import handlers.voicedcommandhandlers.Wedding;
*/
public class MasterHandler
{
private static final Logger _log = Logger.getLogger(MasterHandler.class.getName());
private static final Logger LOGGER = Logger.getLogger(MasterHandler.class.getName());
private static final IHandler<?, ?>[] LOAD_INSTANCES =
{
@@ -600,7 +600,7 @@ public class MasterHandler
public static void main(String[] args)
{
_log.log(Level.INFO, "Loading Handlers...");
LOGGER.log(Level.INFO, "Loading Handlers...");
final Map<IHandler<?, ?>, Method> registerHandlerMethods = new HashMap<>();
for (IHandler<?, ?> loadInstance : LOAD_INSTANCES)
@@ -617,7 +617,7 @@ public class MasterHandler
registerHandlerMethods.entrySet().stream().filter(e -> e.getValue() == null).forEach(e ->
{
_log.log(Level.WARNING, "Failed loading handlers of: " + e.getKey().getClass().getSimpleName() + " seems registerHandler function does not exist.");
LOGGER.log(Level.WARNING, "Failed loading handlers of: " + e.getKey().getClass().getSimpleName() + " seems registerHandler function does not exist.");
});
for (Class<?> classes[] : HANDLERS)
@@ -642,7 +642,7 @@ public class MasterHandler
}
catch (Exception e)
{
_log.log(Level.WARNING, "Failed loading handler: " + c.getSimpleName(), e);
LOGGER.log(Level.WARNING, "Failed loading handler: " + c.getSimpleName(), e);
continue;
}
}
@@ -679,9 +679,9 @@ public class MasterHandler
for (IHandler<?, ?> loadInstance : LOAD_INSTANCES)
{
_log.log(Level.INFO, loadInstance.getClass().getSimpleName() + ": Loaded " + loadInstance.size() + " Handlers");
LOGGER.log(Level.INFO, loadInstance.getClass().getSimpleName() + ": Loaded " + loadInstance.size() + " Handlers");
}
_log.log(Level.INFO, "Handlers Loaded...");
LOGGER.log(Level.INFO, "Handlers Loaded...");
}
}

View File

@@ -34,7 +34,7 @@ public class L2StaticObjectInstanceAction implements IActionHandler
final L2StaticObjectInstance staticObject = (L2StaticObjectInstance) target;
if (staticObject.getType() < 0)
{
_log.info("L2StaticObjectInstance: StaticObject with invalid type! StaticObjectId: " + staticObject.getId());
LOGGER.info("L2StaticObjectInstance: StaticObject with invalid type! StaticObjectId: " + staticObject.getId());
}
// Check if the L2PcInstance already target the L2NpcInstance

View File

@@ -35,7 +35,7 @@ import com.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
*/
public class AdminAdmin implements IAdminCommandHandler
{
private static final Logger _log = Logger.getLogger(AdminAdmin.class.getName());
private static final Logger LOGGER = Logger.getLogger(AdminAdmin.class.getName());
private static final String[] ADMIN_COMMANDS =
{
@@ -113,7 +113,7 @@ public class AdminAdmin implements IAdminCommandHandler
}
catch (Exception e)
{
_log.warning("An error occured while ending olympiad: " + e);
LOGGER.warning("An error occured while ending olympiad: " + e);
}
activeChar.sendMessage("Heroes formed.");
}

View File

@@ -63,7 +63,7 @@ import com.l2jmobius.gameserver.util.Util;
*/
public class AdminEditChar implements IAdminCommandHandler
{
private static Logger _log = Logger.getLogger(AdminEditChar.class.getName());
private static Logger LOGGER = Logger.getLogger(AdminEditChar.class.getName());
private static final String[] ADMIN_COMMANDS =
{
@@ -217,7 +217,7 @@ public class AdminEditChar implements IAdminCommandHandler
{
if (Config.DEVELOPER)
{
_log.warning("Set karma error: " + e);
LOGGER.warning("Set karma error: " + e);
}
activeChar.sendMessage("Usage: //setkarma <new_karma_value>");
}
@@ -248,7 +248,7 @@ public class AdminEditChar implements IAdminCommandHandler
{
if (Config.DEVELOPER)
{
_log.warning("Set pk error: " + e);
LOGGER.warning("Set pk error: " + e);
}
activeChar.sendMessage("Usage: //setpk <pk_count>");
}
@@ -279,7 +279,7 @@ public class AdminEditChar implements IAdminCommandHandler
{
if (Config.DEVELOPER)
{
_log.warning("Set pvp error: " + e);
LOGGER.warning("Set pvp error: " + e);
}
activeChar.sendMessage("Usage: //setpvp <pvp_count>");
}
@@ -310,7 +310,7 @@ public class AdminEditChar implements IAdminCommandHandler
{
if (Config.DEVELOPER)
{
_log.warning("Set Fame error: " + e);
LOGGER.warning("Set Fame error: " + e);
}
activeChar.sendMessage("Usage: //setfame <new_fame_value>");
}

View File

@@ -33,7 +33,7 @@ import com.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
*/
public class AdminEnchant implements IAdminCommandHandler
{
private static Logger _log = Logger.getLogger(AdminEnchant.class.getName());
private static Logger LOGGER = Logger.getLogger(AdminEnchant.class.getName());
private static final String[] ADMIN_COMMANDS =
{
@@ -147,7 +147,7 @@ public class AdminEnchant implements IAdminCommandHandler
{
if (Config.DEVELOPER)
{
_log.warning("Set enchant error: " + e);
LOGGER.warning("Set enchant error: " + e);
}
activeChar.sendMessage("Please specify a new enchant value.");
}
@@ -155,7 +155,7 @@ public class AdminEnchant implements IAdminCommandHandler
{
if (Config.DEVELOPER)
{
_log.warning("Set enchant error: " + e);
LOGGER.warning("Set enchant error: " + e);
}
activeChar.sendMessage("Please specify a valid new enchant value.");
}

View File

@@ -34,7 +34,7 @@ import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
*/
public class AdminFortSiege implements IAdminCommandHandler
{
// private static Logger _log = Logger.getLogger(AdminFortSiege.class.getName());
// private static Logger LOGGER = Logger.getLogger(AdminFortSiege.class.getName());
private static final String[] ADMIN_COMMANDS =
{

View File

@@ -28,7 +28,7 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
*/
public class AdminGm implements IAdminCommandHandler
{
private static Logger _log = Logger.getLogger(AdminGm.class.getName());
private static Logger LOGGER = Logger.getLogger(AdminGm.class.getName());
private static final String[] ADMIN_COMMANDS =
{
"admin_gm"
@@ -42,7 +42,7 @@ public class AdminGm implements IAdminCommandHandler
AdminData.getInstance().deleteGm(activeChar);
activeChar.setAccessLevel(0);
activeChar.sendMessage("You no longer have GM status.");
_log.info("GM: " + activeChar.getName() + "(" + activeChar.getObjectId() + ") turned his GM status off");
LOGGER.info("GM: " + activeChar.getName() + "(" + activeChar.getObjectId() + ") turned his GM status off");
}
return true;
}

View File

@@ -32,7 +32,7 @@ import com.l2jmobius.gameserver.network.SystemMessageId;
*/
public class AdminHeal implements IAdminCommandHandler
{
private static Logger _log = Logger.getLogger(AdminRes.class.getName());
private static Logger LOGGER = Logger.getLogger(AdminRes.class.getName());
private static final String[] ADMIN_COMMANDS =
{
"admin_heal"
@@ -56,7 +56,7 @@ public class AdminHeal implements IAdminCommandHandler
{
if (Config.DEVELOPER)
{
_log.warning("Heal error: " + e);
LOGGER.warning("Heal error: " + e);
}
activeChar.sendMessage("Incorrect target/radius specified.");
}

View File

@@ -39,7 +39,7 @@ import com.l2jmobius.gameserver.network.SystemMessageId;
*/
public class AdminMenu implements IAdminCommandHandler
{
private static final Logger _log = Logger.getLogger(AdminMenu.class.getName());
private static final Logger LOGGER = Logger.getLogger(AdminMenu.class.getName());
private static final String[] ADMIN_COMMANDS =
{
@@ -112,7 +112,7 @@ public class AdminMenu implements IAdminCommandHandler
}
catch (Exception e)
{
_log.log(Level.WARNING, "", e);
LOGGER.log(Level.WARNING, "", e);
}
}
else if (command.startsWith("admin_recall_clan_menu"))
@@ -141,7 +141,7 @@ public class AdminMenu implements IAdminCommandHandler
}
catch (Exception e)
{
_log.log(Level.WARNING, "", e);
LOGGER.log(Level.WARNING, "", e);
}
}
else if (command.startsWith("admin_goto_char_menu"))
@@ -192,7 +192,7 @@ public class AdminMenu implements IAdminCommandHandler
if (!AdminData.getInstance().hasAccess(subCommand, activeChar.getAccessLevel()))
{
activeChar.sendMessage("You don't have the access right to use this command!");
_log.warning("Character " + activeChar.getName() + " tryed to use admin command " + subCommand + ", but have no access to it!");
LOGGER.warning("Character " + activeChar.getName() + " tryed to use admin command " + subCommand + ", but have no access to it!");
return false;
}
final IAdminCommandHandler ach = AdminCommandHandler.getInstance().getHandler(subCommand);
@@ -209,7 +209,7 @@ public class AdminMenu implements IAdminCommandHandler
if (!AdminData.getInstance().hasAccess(subCommand, activeChar.getAccessLevel()))
{
activeChar.sendMessage("You don't have the access right to use this command!");
_log.warning("Character " + activeChar.getName() + " tryed to use admin command " + subCommand + ", but have no access to it!");
LOGGER.warning("Character " + activeChar.getName() + " tryed to use admin command " + subCommand + ", but have no access to it!");
return false;
}
final IAdminCommandHandler ach = AdminCommandHandler.getInstance().getHandler(subCommand);

View File

@@ -32,7 +32,7 @@ import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
*/
public class AdminMonsterRace implements IAdminCommandHandler
{
// private static Logger _log = Logger.getLogger(AdminMonsterRace.class.getName());
// private static Logger LOGGER = Logger.getLogger(AdminMonsterRace.class.getName());
private static final String[] ADMIN_COMMANDS =
{
@@ -133,7 +133,7 @@ public class AdminMonsterRace implements IAdminCommandHandler
// MonsterRace.getInstance().newSpeeds();
// int[][] speeds2 = MonsterRace.getInstance().getSpeeds();
/*
* int[] speed = new int[8]; for (int i=0; i<8; i++) { for (int j=0; j<20; j++) { //_log.info("Adding "+speeds1[i][j] +" and "+ speeds2[i][j]); speed[i] += (speeds1[i][j]*1);// + (speeds2[i][j]*1); } _log.info("Total speed for "+(i+1)+" = "+speed[i]); }
* int[] speed = new int[8]; for (int i=0; i<8; i++) { for (int j=0; j<20; j++) { //_log.info("Adding "+speeds1[i][j] +" and "+ speeds2[i][j]); speed[i] += (speeds1[i][j]*1);// + (speeds2[i][j]*1); } LOGGER.info("Total speed for "+(i+1)+" = "+speed[i]); }
*/
final MonRaceInfo spk = new MonRaceInfo(codes[2][0], codes[2][1], MonsterRace.getInstance().getMonsters(), MonsterRace.getInstance().getSpeeds());

View File

@@ -43,7 +43,7 @@ import com.l2jmobius.gameserver.util.Util;
*/
public class AdminPunishment implements IAdminCommandHandler
{
private static final Logger _log = Logger.getLogger(AdminPunishment.class.getName());
private static final Logger LOGGER = Logger.getLogger(AdminPunishment.class.getName());
private static final String[] ADMIN_COMMANDS =
{
@@ -86,7 +86,7 @@ public class AdminPunishment implements IAdminCommandHandler
}
else
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": data/html/admin/punishment.htm is missing");
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": data/html/admin/punishment.htm is missing");
}
}
else
@@ -149,7 +149,7 @@ public class AdminPunishment implements IAdminCommandHandler
}
else
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": data/html/admin/punishment-info.htm is missing");
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": data/html/admin/punishment-info.htm is missing");
}
break;
}
@@ -186,7 +186,7 @@ public class AdminPunishment implements IAdminCommandHandler
}
else
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": data/html/admin/punishment-player.htm is missing");
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": data/html/admin/punishment-player.htm is missing");
}
break;
}

View File

@@ -32,7 +32,7 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
*/
public class AdminRepairChar implements IAdminCommandHandler
{
private static Logger _log = Logger.getLogger(AdminRepairChar.class.getName());
private static Logger LOGGER = Logger.getLogger(AdminRepairChar.class.getName());
private static final String[] ADMIN_COMMANDS =
{
@@ -101,7 +101,7 @@ public class AdminRepairChar implements IAdminCommandHandler
}
catch (Exception e)
{
_log.log(Level.WARNING, "could not repair char:", e);
LOGGER.log(Level.WARNING, "could not repair char:", e);
}
}
}

View File

@@ -35,7 +35,7 @@ import com.l2jmobius.gameserver.network.serverpackets.ExBuySellList;
*/
public class AdminShop implements IAdminCommandHandler
{
private static final Logger _log = Logger.getLogger(AdminShop.class.getName());
private static final Logger LOGGER = Logger.getLogger(AdminShop.class.getName());
private static final String[] ADMIN_COMMANDS =
{
@@ -79,7 +79,7 @@ public class AdminShop implements IAdminCommandHandler
}
catch (Exception e)
{
_log.warning("admin buylist failed:" + command);
LOGGER.warning("admin buylist failed:" + command);
}
final L2BuyList buyList = BuyListData.getInstance().getBuyList(val);
@@ -91,7 +91,7 @@ public class AdminShop implements IAdminCommandHandler
}
else
{
_log.warning("no buylist with id:" + val);
LOGGER.warning("no buylist with id:" + val);
}
activeChar.sendPacket(ActionFailed.STATIC_PACKET);
}

View File

@@ -41,7 +41,7 @@ import com.l2jmobius.gameserver.network.serverpackets.QuestList;
*/
public class AdminShowQuests implements IAdminCommandHandler
{
private static final Logger _log = Logger.getLogger(AdminShowQuests.class.getName());
private static final Logger LOGGER = Logger.getLogger(AdminShowQuests.class.getName());
private static final String[] ADMIN_COMMANDS =
{
@@ -312,7 +312,7 @@ public class AdminShowQuests implements IAdminCommandHandler
catch (Exception e)
{
actor.sendMessage("There was an error.");
_log.warning(AdminShowQuests.class.getSimpleName() + ": " + e.getMessage());
LOGGER.warning(AdminShowQuests.class.getSimpleName() + ": " + e.getMessage());
}
}

View File

@@ -57,7 +57,7 @@ import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
*/
public class AdminSkill implements IAdminCommandHandler
{
private static Logger _log = Logger.getLogger(AdminSkill.class.getName());
private static Logger LOGGER = Logger.getLogger(AdminSkill.class.getName());
private static final String[] ADMIN_COMMANDS =
{
@@ -460,7 +460,7 @@ public class AdminSkill implements IAdminCommandHandler
}
catch (Exception e)
{
_log.log(Level.WARNING, "", e);
LOGGER.log(Level.WARNING, "", e);
}
if (skill != null)
{

View File

@@ -51,7 +51,7 @@ import com.l2jmobius.gameserver.util.Broadcast;
*/
public class AdminSpawn implements IAdminCommandHandler
{
private static final Logger _log = Logger.getLogger(AdminSpawn.class.getName());
private static final Logger LOGGER = Logger.getLogger(AdminSpawn.class.getName());
private static final String[] ADMIN_COMMANDS =
{
@@ -377,17 +377,17 @@ public class AdminSpawn implements IAdminCommandHandler
default:
case 0:
{
_log.info("('',1," + i + "," + x + "," + y + "," + z + ",0,0," + h + ",60,0,0),");
LOGGER.info("('',1," + i + "," + x + "," + y + "," + z + ",0,0," + h + ",60,0,0),");
break;
}
case 1:
{
_log.info("<spawn npcId=\"" + i + "\" x=\"" + x + "\" y=\"" + y + "\" z=\"" + z + "\" heading=\"" + h + "\" respawn=\"0\" />");
LOGGER.info("<spawn npcId=\"" + i + "\" x=\"" + x + "\" y=\"" + y + "\" z=\"" + z + "\" heading=\"" + h + "\" respawn=\"0\" />");
break;
}
case 2:
{
_log.info("{ " + i + ", " + x + ", " + y + ", " + z + ", " + h + " },");
LOGGER.info("{ " + i + ", " + x + ", " + y + ", " + z + ", " + h + " },");
break;
}
}

View File

@@ -28,7 +28,7 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
*/
public class AdminSummon implements IAdminCommandHandler
{
private static final Logger _log = Logger.getLogger(AdminSummon.class.getName());
private static final Logger LOGGER = Logger.getLogger(AdminSummon.class.getName());
public static final String[] ADMIN_COMMANDS =
{
@@ -69,7 +69,7 @@ public class AdminSummon implements IAdminCommandHandler
if (!AdminData.getInstance().hasAccess(subCommand, activeChar.getAccessLevel()))
{
activeChar.sendMessage("You don't have the access right to use this command!");
_log.warning("Character " + activeChar.getName() + " tryed to use admin command " + subCommand + ", but have no access to it!");
LOGGER.warning("Character " + activeChar.getName() + " tryed to use admin command " + subCommand + ", but have no access to it!");
return false;
}
final IAdminCommandHandler ach = AdminCommandHandler.getInstance().getHandler(subCommand);
@@ -81,7 +81,7 @@ public class AdminSummon implements IAdminCommandHandler
if (!AdminData.getInstance().hasAccess(subCommand, activeChar.getAccessLevel()))
{
activeChar.sendMessage("You don't have the access right to use this command!");
_log.warning("Character " + activeChar.getName() + " tryed to use admin command " + subCommand + ", but have no access to it!");
LOGGER.warning("Character " + activeChar.getName() + " tryed to use admin command " + subCommand + ", but have no access to it!");
return false;
}
final IAdminCommandHandler ach = AdminCommandHandler.getInstance().getHandler(subCommand);

View File

@@ -46,7 +46,7 @@ import com.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
*/
public class AdminTeleport implements IAdminCommandHandler
{
private static final Logger _log = Logger.getLogger(AdminTeleport.class.getName());
private static final Logger LOGGER = Logger.getLogger(AdminTeleport.class.getName());
private static final String[] ADMIN_COMMANDS =
{
@@ -532,7 +532,7 @@ public class AdminTeleport implements IAdminCommandHandler
if (spawn == null)
{
activeChar.sendMessage("Incorrect monster spawn.");
_log.warning("ERROR: NPC " + target.getObjectId() + " has a 'null' spawn.");
LOGGER.warning("ERROR: NPC " + target.getObjectId() + " has a 'null' spawn.");
return;
}
final int respawnTime = spawn.getRespawnDelay() / 1000;
@@ -578,7 +578,7 @@ public class AdminTeleport implements IAdminCommandHandler
if (spawn == null)
{
activeChar.sendMessage("Incorrect raid spawn.");
_log.warning("ERROR: NPC Id" + target.getId() + " has a 'null' spawn.");
LOGGER.warning("ERROR: NPC Id" + target.getId() + " has a 'null' spawn.");
return;
}
RaidBossSpawnManager.getInstance().deleteSpawn(spawn, true);

View File

@@ -30,7 +30,7 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
*/
public class AdminUnblockIp implements IAdminCommandHandler
{
private static final Logger _log = Logger.getLogger(AdminUnblockIp.class.getName());
private static final Logger LOGGER = Logger.getLogger(AdminUnblockIp.class.getName());
private static final String[] ADMIN_COMMANDS =
{
@@ -69,7 +69,7 @@ public class AdminUnblockIp implements IAdminCommandHandler
private boolean unblockIp(String ipAddress, L2PcInstance activeChar)
{
// LoginServerThread.getInstance().unBlockip(ipAddress);
_log.warning("IP removed by GM " + activeChar.getName());
LOGGER.warning("IP removed by GM " + activeChar.getName());
return true;
}
}

View File

@@ -62,7 +62,7 @@ import ai.AbstractNpcAI;
*/
public class AdminZones extends AbstractNpcAI implements IAdminCommandHandler
{
private static final Logger _log = Logger.getLogger(AdminPathNode.class.getName());
private static final Logger LOGGER = Logger.getLogger(AdminPathNode.class.getName());
private final Map<Integer, ZoneNodeHolder> _zones = new ConcurrentHashMap<>();
private static final String[] COMMANDS =
@@ -431,7 +431,7 @@ public class AdminZones extends AbstractNpcAI implements IAdminCommandHandler
catch (Exception e)
{
activeChar.sendMessage("Failed writing the dump: " + e.getMessage());
_log.log(Level.WARNING, "Failed writing point picking dump for " + activeChar.getName() + ":" + e.getMessage(), e);
LOGGER.log(Level.WARNING, "Failed writing point picking dump for " + activeChar.getName() + ":" + e.getMessage(), e);
}
}
}

View File

@@ -57,7 +57,7 @@ public class Augment implements IBypassHandler
}
catch (Exception e)
{
_log.log(Level.WARNING, "Exception in " + getClass().getSimpleName(), e);
LOGGER.log(Level.WARNING, "Exception in " + getClass().getSimpleName(), e);
}
return false;
}

View File

@@ -54,7 +54,7 @@ public class Buy implements IBypassHandler
}
catch (Exception e)
{
_log.log(Level.WARNING, "Exception in " + getClass().getSimpleName(), e);
LOGGER.log(Level.WARNING, "Exception in " + getClass().getSimpleName(), e);
}
return false;
}

View File

@@ -117,7 +117,7 @@ public class ClanWarehouse implements IBypassHandler
}
catch (Exception e)
{
_log.log(Level.WARNING, "Exception in " + getClass().getSimpleName(), e);
LOGGER.log(Level.WARNING, "Exception in " + getClass().getSimpleName(), e);
}
return false;
}

View File

@@ -54,7 +54,7 @@ public class EventEngine implements IBypassHandler
}
catch (Exception e)
{
_log.log(Level.WARNING, "Exception in " + getClass().getSimpleName(), e);
LOGGER.log(Level.WARNING, "Exception in " + getClass().getSimpleName(), e);
}
return false;
}

View File

@@ -322,7 +322,7 @@ public class Festival implements IBypassHandler
}
catch (Exception e)
{
_log.log(Level.WARNING, "Exception in " + getClass().getSimpleName(), e);
LOGGER.log(Level.WARNING, "Exception in " + getClass().getSimpleName(), e);
}
return false;
}

View File

@@ -121,7 +121,7 @@ public class ItemAuctionLink implements IBypassHandler
}
catch (Exception e)
{
_log.log(Level.WARNING, "Exception in " + getClass().getSimpleName(), e);
LOGGER.log(Level.WARNING, "Exception in " + getClass().getSimpleName(), e);
}
return true;

View File

@@ -34,13 +34,13 @@ public class Link implements IBypassHandler
final String htmlPath = command.substring(4).trim();
if (htmlPath.isEmpty())
{
_log.warning("Player " + activeChar.getName() + " sent empty link html!");
LOGGER.warning("Player " + activeChar.getName() + " sent empty link html!");
return false;
}
if (htmlPath.contains(".."))
{
_log.warning("Player " + activeChar.getName() + " sent invalid link html: " + htmlPath);
LOGGER.warning("Player " + activeChar.getName() + " sent invalid link html: " + htmlPath);
return false;
}

View File

@@ -59,7 +59,7 @@ public class Multisell implements IBypassHandler
}
catch (Exception e)
{
_log.log(Level.WARNING, "Exception in " + getClass().getSimpleName(), e);
LOGGER.log(Level.WARNING, "Exception in " + getClass().getSimpleName(), e);
}
return false;
}

View File

@@ -59,7 +59,7 @@ public class NpcViewMod implements IBypassHandler
if (!st.hasMoreTokens())
{
_log.warning("Bypass[NpcViewMod] used without enough parameters.");
LOGGER.warning("Bypass[NpcViewMod] used without enough parameters.");
return false;
}
@@ -98,7 +98,7 @@ public class NpcViewMod implements IBypassHandler
{
if (st.countTokens() < 2)
{
_log.warning("Bypass[NpcViewMod] used without enough parameters.");
LOGGER.warning("Bypass[NpcViewMod] used without enough parameters.");
return false;
}
@@ -121,7 +121,7 @@ public class NpcViewMod implements IBypassHandler
}
catch (IllegalArgumentException e)
{
_log.warning("Bypass[NpcViewMod] unknown drop list scope: " + dropListTypeString);
LOGGER.warning("Bypass[NpcViewMod] unknown drop list scope: " + dropListTypeString);
return false;
}
break;
@@ -437,7 +437,7 @@ public class NpcViewMod implements IBypassHandler
String html = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "data/html/mods/NpcView/DropList.htm");
if (html == null)
{
_log.warning(NpcViewMod.class.getSimpleName() + ": The html file data/html/mods/NpcView/DropList.htm could not be found.");
LOGGER.warning(NpcViewMod.class.getSimpleName() + ": The html file data/html/mods/NpcView/DropList.htm could not be found.");
return;
}
html = html.replaceAll("%name%", npc.getName());

View File

@@ -114,7 +114,7 @@ public class Observation implements IBypassHandler
}
catch (NumberFormatException nfe)
{
_log.log(Level.WARNING, "Exception in " + getClass().getSimpleName(), nfe);
LOGGER.log(Level.WARNING, "Exception in " + getClass().getSimpleName(), nfe);
return false;
}

View File

@@ -254,7 +254,7 @@ public class OlympiadManagerLink implements IBypassHandler
}
default:
{
_log.warning("Olympiad System: Couldnt send packet for request " + val);
LOGGER.warning("Olympiad System: Couldnt send packet for request " + val);
break;
}
}
@@ -272,21 +272,21 @@ public class OlympiadManagerLink implements IBypassHandler
if (!Util.isDigit(params[1]))
{
_log.warning("Olympiad Buffer Warning: npcId = " + target.getId() + " has invalid buffGroup set in the bypass for the buff selected: " + params[1]);
LOGGER.warning("Olympiad Buffer Warning: npcId = " + target.getId() + " has invalid buffGroup set in the bypass for the buff selected: " + params[1]);
return false;
}
final int index = Integer.parseInt(params[1]);
if ((index < 0) || (index > BUFFS.length))
{
_log.warning("Olympiad Buffer Warning: npcId = " + target.getId() + " has invalid index sent in the bypass: " + index);
LOGGER.warning("Olympiad Buffer Warning: npcId = " + target.getId() + " has invalid index sent in the bypass: " + index);
return false;
}
final NpcBufferData npcBuffGroupInfo = NpcBufferTable.getInstance().getSkillInfo(target.getId(), BUFFS[index]);
if (npcBuffGroupInfo == null)
{
_log.warning("Olympiad Buffer Warning: npcId = " + target.getId() + " Location: " + target.getX() + ", " + target.getY() + ", " + target.getZ() + " Player: " + activeChar.getName() + " has tried to use skill group (" + params[1] + ") not assigned to the NPC Buffer!");
LOGGER.warning("Olympiad Buffer Warning: npcId = " + target.getId() + " Location: " + target.getX() + ", " + target.getY() + ", " + target.getZ() + " Player: " + activeChar.getName() + " has tried to use skill group (" + params[1] + ") not assigned to the NPC Buffer!");
return false;
}
@@ -382,7 +382,7 @@ public class OlympiadManagerLink implements IBypassHandler
}
default:
{
_log.warning("Olympiad System: Couldnt send packet for request " + val);
LOGGER.warning("Olympiad System: Couldnt send packet for request " + val);
break;
}
}
@@ -390,7 +390,7 @@ public class OlympiadManagerLink implements IBypassHandler
}
catch (Exception e)
{
_log.log(Level.WARNING, "Exception in " + getClass().getSimpleName(), e);
LOGGER.log(Level.WARNING, "Exception in " + getClass().getSimpleName(), e);
}
return true;

View File

@@ -101,7 +101,7 @@ public class OlympiadObservation implements IBypassHandler
}
catch (Exception e)
{
_log.log(Level.WARNING, "Exception in " + getClass().getSimpleName(), e);
LOGGER.log(Level.WARNING, "Exception in " + getClass().getSimpleName(), e);
}
return false;
}

View File

@@ -66,7 +66,7 @@ public class PlayerHelp implements IBypassHandler
}
catch (Exception e)
{
_log.log(Level.WARNING, "Exception in " + getClass().getSimpleName(), e);
LOGGER.log(Level.WARNING, "Exception in " + getClass().getSimpleName(), e);
}
return true;
}

View File

@@ -101,7 +101,7 @@ public class PrivateWarehouse implements IBypassHandler
}
catch (Exception e)
{
_log.log(Level.WARNING, "Exception in " + getClass().getSimpleName(), e);
LOGGER.log(Level.WARNING, "Exception in " + getClass().getSimpleName(), e);
}
return false;
}

View File

@@ -230,7 +230,7 @@ public class QuestLink implements IBypassHandler
final L2NpcTemplate template = NpcData.getInstance().getTemplate(npcId);
if (template == null)
{
_log.log(Level.WARNING, QuestLink.class.getSimpleName() + ": " + player.getName() + " requested quests for talk on non existing npc " + npcId);
LOGGER.log(Level.WARNING, QuestLink.class.getSimpleName() + ": " + player.getName() + " requested quests for talk on non existing npc " + npcId);
return states;
}
@@ -268,7 +268,7 @@ public class QuestLink implements IBypassHandler
final Quest quest = state.getQuest();
if (quest == null)
{
_log.log(Level.WARNING, player + " Requested incorrect quest state for non existing quest: " + state.getQuestName());
LOGGER.log(Level.WARNING, player + " Requested incorrect quest state for non existing quest: " + state.getQuestName());
continue;
}
if ((quest.getId() > 0) && (quest.getId() < 20000))

View File

@@ -73,7 +73,7 @@ public class RentPet implements IBypassHandler
}
catch (Exception e)
{
_log.info("Exception in " + getClass().getSimpleName());
LOGGER.info("Exception in " + getClass().getSimpleName());
}
return false;
}

View File

@@ -51,7 +51,7 @@ public class Rift implements IBypassHandler
}
catch (Exception e)
{
_log.log(Level.WARNING, "Exception in " + getClass().getSimpleName(), e);
LOGGER.log(Level.WARNING, "Exception in " + getClass().getSimpleName(), e);
}
}
else

View File

@@ -119,7 +119,7 @@ public class SkillList implements IBypassHandler
}
catch (Exception e)
{
_log.log(Level.WARNING, "Exception in " + getClass().getSimpleName(), e);
LOGGER.log(Level.WARNING, "Exception in " + getClass().getSimpleName(), e);
}
}
else

View File

@@ -63,7 +63,7 @@ public class Wear implements IBypassHandler
}
catch (Exception e)
{
_log.log(Level.WARNING, "Exception in " + getClass().getSimpleName(), e);
LOGGER.log(Level.WARNING, "Exception in " + getClass().getSimpleName(), e);
}
return false;
}
@@ -73,7 +73,7 @@ public class Wear implements IBypassHandler
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;
}

View File

@@ -41,7 +41,7 @@ public final class AttackTrait extends AbstractEffect
if (params.isEmpty())
{
_log.warning(getClass().getSimpleName() + ": this effect must have parameters!");
LOGGER.warning(getClass().getSimpleName() + ": this effect must have parameters!");
return;
}

View File

@@ -41,7 +41,7 @@ public final class DefenceTrait extends AbstractEffect
if (params.isEmpty())
{
_log.warning(getClass().getSimpleName() + ": must have parameters.");
LOGGER.warning(getClass().getSimpleName() + ": must have parameters.");
return;
}
@@ -59,11 +59,11 @@ public final class DefenceTrait extends AbstractEffect
}
catch (NumberFormatException e)
{
_log.warning(getClass().getSimpleName() + ": value of " + param.getKey() + " must be float value " + param.getValue() + " found.");
LOGGER.warning(getClass().getSimpleName() + ": value of " + param.getKey() + " must be float value " + param.getValue() + " found.");
}
catch (Exception e)
{
_log.warning(getClass().getSimpleName() + ": value of L2TraitType enum required but found: " + param.getValue());
LOGGER.warning(getClass().getSimpleName() + ": value of L2TraitType enum required but found: " + param.getValue());
}
}
}

View File

@@ -62,7 +62,7 @@ public final class EnemyCharge extends AbstractEffect
final double distance = Math.sqrt((dx * dx) + (dy * dy));
if (distance > 2000)
{
_log.info("EffectEnemyCharge was going to use invalid coordinates for characters, getEffector: " + curX + "," + curY + " and getEffected: " + info.getEffected().getX() + "," + info.getEffected().getY());
LOGGER.info("EffectEnemyCharge was going to use invalid coordinates for characters, getEffector: " + curX + "," + curY + " and getEffected: " + info.getEffected().getX() + "," + info.getEffected().getY());
return;
}

View File

@@ -41,7 +41,7 @@ public final class GiveRecommendation extends AbstractEffect
_amount = params.getInt("amount", 0);
if (_amount == 0)
{
_log.warning(getClass().getSimpleName() + ": amount parameter is missing or set to 0. id:" + set.getInt("id", -1));
LOGGER.warning(getClass().getSimpleName() + ": amount parameter is missing or set to 0. id:" + set.getInt("id", -1));
}
}

View File

@@ -59,7 +59,7 @@ public final class MaxCp extends AbstractEffect
if (params.isEmpty())
{
_log.warning(getClass().getSimpleName() + ": must have parameters.");
LOGGER.warning(getClass().getSimpleName() + ": must have parameters.");
}
}

View File

@@ -59,7 +59,7 @@ public final class MaxHp extends AbstractEffect
if (params.isEmpty())
{
_log.warning(getClass().getSimpleName() + ": must have parameters.");
LOGGER.warning(getClass().getSimpleName() + ": must have parameters.");
}
}

View File

@@ -57,7 +57,7 @@ public final class Restoration extends AbstractEffect
if ((_itemId <= 0) || (_itemCount <= 0))
{
info.getEffected().sendPacket(SystemMessageId.THERE_WAS_NOTHING_FOUND_INSIDE);
_log.warning(Restoration.class.getSimpleName() + " effect with wrong item Id/count: " + _itemId + "/" + _itemCount + "!");
LOGGER.warning(Restoration.class.getSimpleName() + " effect with wrong item Id/count: " + _itemId + "/" + _itemCount + "!");
return;
}

View File

@@ -66,7 +66,7 @@ public final class RestorationRandom extends AbstractEffect
if (exSkill.getProductItems().isEmpty())
{
_log.warning("Extractable Skill with no data, probably wrong/empty table in Skill Id: " + info.getSkill().getId());
LOGGER.warning("Extractable Skill with no data, probably wrong/empty table in Skill Id: " + info.getSkill().getId());
return;
}

View File

@@ -86,7 +86,7 @@ public final class Summon extends AbstractEffect
if (summon.getLevel() >= ExperienceData.getInstance().getMaxPetLevel())
{
summon.getStat().setExp(ExperienceData.getInstance().getExpForLevel(ExperienceData.getInstance().getMaxPetLevel() - 1));
_log.warning(Summon.class.getSimpleName() + ": (" + summon.getName() + ") NpcID: " + summon.getId() + " has a level above " + ExperienceData.getInstance().getMaxPetLevel() + ". Please rectify.");
LOGGER.warning(Summon.class.getSimpleName() + ": (" + summon.getName() + ") NpcID: " + summon.getId() + " has a level above " + ExperienceData.getInstance().getMaxPetLevel() + ". Please rectify.");
}
else
{

View File

@@ -36,7 +36,7 @@ public final class SummonAgathion extends AbstractEffect
if (params.isEmpty())
{
_log.warning(getClass().getSimpleName() + ": must have parameters.");
LOGGER.warning(getClass().getSimpleName() + ": must have parameters.");
}
_npcId = params.getInt("npcId", 0);

View File

@@ -72,7 +72,7 @@ public final class SummonCubic extends AbstractEffect
if (_cubicId < 0)
{
_log.warning(SummonCubic.class.getSimpleName() + ": Invalid Cubic ID:" + _cubicId + " in skill ID: " + info.getSkill().getId());
LOGGER.warning(SummonCubic.class.getSimpleName() + ": Invalid Cubic ID:" + _cubicId + " in skill ID: " + info.getSkill().getId());
return;
}

View File

@@ -77,7 +77,7 @@ public final class SummonNpc extends AbstractEffect
if ((_npcId <= 0) || (_npcCount <= 0))
{
_log.warning(SummonNpc.class.getSimpleName() + ": Invalid NPC ID or count skill ID: " + info.getSkill().getId());
LOGGER.warning(SummonNpc.class.getSimpleName() + ": Invalid NPC ID or count skill ID: " + info.getSkill().getId());
return;
}
@@ -90,7 +90,7 @@ public final class SummonNpc extends AbstractEffect
final L2NpcTemplate npcTemplate = NpcData.getInstance().getTemplate(_npcId);
if (npcTemplate == null)
{
_log.warning(SummonNpc.class.getSimpleName() + ": Spawn of the nonexisting NPC ID: " + _npcId + ", skill ID:" + info.getSkill().getId());
LOGGER.warning(SummonNpc.class.getSimpleName() + ": Spawn of the nonexisting NPC ID: " + _npcId + ", skill ID:" + info.getSkill().getId());
return;
}
@@ -147,7 +147,7 @@ public final class SummonNpc extends AbstractEffect
}
catch (Exception e)
{
_log.warning(SummonNpc.class.getSimpleName() + ": " + e.getMessage());
LOGGER.warning(SummonNpc.class.getSimpleName() + ": " + e.getMessage());
return;
}

View File

@@ -76,14 +76,14 @@ public final class SummonPet extends AbstractEffect
final PetItemHolder holder = player.removeScript(PetItemHolder.class);
if (holder == null)
{
_log.log(Level.WARNING, "Summoning pet without attaching PetItemHandler!", new Throwable());
LOGGER.log(Level.WARNING, "Summoning pet without attaching PetItemHandler!", new Throwable());
return;
}
final L2ItemInstance item = holder.getItem();
if (player.getInventory().getItemByObjectId(item.getObjectId()) != item)
{
_log.log(Level.WARNING, "Player: " + player + " is trying to summon pet from item that he doesn't owns.");
LOGGER.log(Level.WARNING, "Player: " + player + " is trying to summon pet from item that he doesn't owns.");
return;
}

View File

@@ -58,7 +58,7 @@ public final class SummonTrap extends AbstractEffect
if (_npcId <= 0)
{
_log.warning(SummonTrap.class.getSimpleName() + ": Invalid NPC ID:" + _npcId + " in skill ID: " + info.getSkill().getId());
LOGGER.warning(SummonTrap.class.getSimpleName() + ": Invalid NPC ID:" + _npcId + " in skill ID: " + info.getSkill().getId());
return;
}
@@ -77,7 +77,7 @@ public final class SummonTrap extends AbstractEffect
final L2NpcTemplate npcTemplate = NpcData.getInstance().getTemplate(_npcId);
if (npcTemplate == null)
{
_log.warning(SummonTrap.class.getSimpleName() + ": Spawn of the non-existing Trap ID: " + _npcId + " in skill ID:" + info.getSkill().getId());
LOGGER.warning(SummonTrap.class.getSimpleName() + ": Spawn of the non-existing Trap ID: " + _npcId + " in skill ID:" + info.getSkill().getId());
return;
}

View File

@@ -64,7 +64,7 @@ public final class ThrowUp extends AbstractEffect
final double distance = Math.sqrt((dx * dx) + (dy * dy));
if (distance > 2000)
{
_log.info("EffectThrow was going to use invalid coordinates for characters, getEffected: " + curX + "," + curY + " and getEffector: " + info.getEffector().getX() + "," + info.getEffector().getY());
LOGGER.info("EffectThrow was going to use invalid coordinates for characters, getEffected: " + curX + "," + curY + " and getEffector: " + info.getEffector().getX() + "," + info.getEffector().getY());
return;
}
int offset = Math.min((int) distance + info.getSkill().getFlyRadius(), 1400);

View File

@@ -98,7 +98,7 @@ public final class TriggerSkillByAttack extends AbstractEffect
final ITargetTypeHandler targetHandler = TargetHandler.getInstance().getHandler(_targetType);
if (targetHandler == null)
{
_log.warning("Handler for target type: " + _targetType + " does not exist.");
LOGGER.warning("Handler for target type: " + _targetType + " does not exist.");
return;
}

View File

@@ -68,7 +68,7 @@ public final class TriggerSkillByAvoid extends AbstractEffect
final ITargetTypeHandler targetHandler = TargetHandler.getInstance().getHandler(_targetType);
if (targetHandler == null)
{
_log.warning("Handler for target type: " + _targetType + " does not exist.");
LOGGER.warning("Handler for target type: " + _targetType + " does not exist.");
return;
}

View File

@@ -75,7 +75,7 @@ public final class TriggerSkillByDamage extends AbstractEffect
final ITargetTypeHandler targetHandler = TargetHandler.getInstance().getHandler(_targetType);
if (targetHandler == null)
{
_log.warning("Handler for target type: " + _targetType + " does not exist.");
LOGGER.warning("Handler for target type: " + _targetType + " does not exist.");
return;
}

View File

@@ -75,7 +75,7 @@ public final class TriggerSkillBySkill extends AbstractEffect
final ITargetTypeHandler targetHandler = TargetHandler.getInstance().getHandler(_targetType);
if (targetHandler == null)
{
_log.warning("Handler for target type: " + _targetType + " does not exist.");
LOGGER.warning("Handler for target type: " + _targetType + " does not exist.");
return;
}

View File

@@ -63,7 +63,7 @@ public class BeastSoulShot implements IItemHandler
if (skills == null)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": is missing skills!");
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": is missing skills!");
return false;
}

View File

@@ -63,7 +63,7 @@ public class BeastSpiritShot implements IItemHandler
if (skills == null)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": is missing skills!");
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": is missing skills!");
return false;
}

View File

@@ -50,7 +50,7 @@ public class BlessedSpiritShot implements IItemHandler
if (skills == null)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": is missing skills!");
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": is missing skills!");
return false;
}

View File

@@ -58,7 +58,7 @@ public class EventItem implements IItemHandler
}
default:
{
_log.warning("EventItemHandler: Item with id: " + itemId + " is not handled");
LOGGER.warning("EventItemHandler: Item with id: " + itemId + " is not handled");
}
}
return used;
@@ -102,7 +102,7 @@ public class EventItem implements IItemHandler
});
return true;
}
_log.warning("Char: " + castor.getName() + "[" + castor.getObjectId() + "] has unknown block checker arena");
LOGGER.warning("Char: " + castor.getName() + "[" + castor.getObjectId() + "] has unknown block checker arena");
return false;
}
}

View File

@@ -49,7 +49,7 @@ public class ExtractableItems implements IItemHandler
final List<L2ExtractableProduct> exitem = etcitem.getExtractableItems();
if (exitem == null)
{
_log.info("No extractable data defined for " + etcitem);
LOGGER.info("No extractable data defined for " + etcitem);
return false;
}

View File

@@ -65,7 +65,7 @@ public class FishShots implements IItemHandler
if (skills == null)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": is missing skills!");
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": is missing skills!");
return false;
}

View File

@@ -48,7 +48,7 @@ public final class Harvester implements IItemHandler
final SkillHolder[] skills = item.getItem().getSkills();
if (skills == null)
{
_log.warning(getClass().getSimpleName() + ": is missing skills!");
LOGGER.warning(getClass().getSimpleName() + ": is missing skills!");
return false;
}

View File

@@ -63,7 +63,7 @@ public class ItemSkillsTemplate implements IItemHandler
final SkillHolder[] skills = item.getEtcItem().getSkills();
if (skills == null)
{
_log.info("Item " + item + " does not have registered any skill for handler.");
LOGGER.info("Item " + item + " does not have registered any skill for handler.");
return false;
}

View File

@@ -70,7 +70,7 @@ public class MercTicket implements IItemHandler
// Checking Seven Signs Quest Period
if (SevenSigns.getInstance().getCurrentPeriod() != SevenSigns.PERIOD_SEAL_VALIDATION)
{
// _log.warning("Someone has tried to spawn a guardian during Quest Event Period of The Seven Signs.");
// LOGGER.warning("Someone has tried to spawn a guardian during Quest Event Period of The Seven Signs.");
activeChar.sendPacket(SystemMessageId.THIS_MERCENARY_CANNOT_BE_POSITIONED_ANYMORE);
return false;
}
@@ -81,7 +81,7 @@ public class MercTicket implements IItemHandler
{
if (SevenSigns.getInstance().checkIsDawnPostingTicket(itemId))
{
// _log.warning("Someone has tried to spawn a Dawn Mercenary though the Seal of Strife is not controlled by anyone.");
// LOGGER.warning("Someone has tried to spawn a Dawn Mercenary though the Seal of Strife is not controlled by anyone.");
activeChar.sendPacket(SystemMessageId.THIS_MERCENARY_CANNOT_BE_POSITIONED_ANYMORE);
return false;
}
@@ -91,7 +91,7 @@ public class MercTicket implements IItemHandler
{
if (!SevenSigns.getInstance().checkIsRookiePostingTicket(itemId))
{
// _log.warning("Someone has tried to spawn a non-Rookie Mercenary though the Seal of Strife is controlled by Revolutionaries of Dusk.");
// LOGGER.warning("Someone has tried to spawn a non-Rookie Mercenary though the Seal of Strife is controlled by Revolutionaries of Dusk.");
activeChar.sendPacket(SystemMessageId.THIS_MERCENARY_CANNOT_BE_POSITIONED_ANYMORE);
return false;
}

View File

@@ -51,7 +51,7 @@ public class SoulShots implements IItemHandler
if (skills == null)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": is missing skills!");
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": is missing skills!");
return false;
}

View File

@@ -50,7 +50,7 @@ public class SpiritShot implements IItemHandler
if (skills == null)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": is missing skills!");
LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": is missing skills!");
return false;
}

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