Refactored logger variables to caps.
This commit is contained in:
@@ -36,7 +36,7 @@ import com.l2jmobius.gameserver.util.Util;
|
||||
*/
|
||||
public abstract class AbstractNpcAI extends Quest
|
||||
{
|
||||
protected final Logger _log = Logger.getLogger(getClass().getName());
|
||||
protected final Logger LOGGER = Logger.getLogger(getClass().getName());
|
||||
|
||||
public AbstractNpcAI()
|
||||
{
|
||||
|
@@ -76,7 +76,7 @@ public final class CrumaTower extends AbstractNpcAI
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_log.warning("Invalid location for Cruma Tower teleport device.");
|
||||
LOGGER.warning("Invalid location for Cruma Tower teleport device.");
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -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());
|
||||
|
@@ -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()
|
||||
|
@@ -303,7 +303,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
|
||||
}
|
||||
|
||||
@@ -368,7 +368,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;
|
||||
}
|
||||
|
||||
|
@@ -199,7 +199,7 @@ public class EnchantedMegaliths extends AbstractNpcAI
|
||||
private void updateMegalithStage()
|
||||
{
|
||||
GlobalVariablesManager.getInstance().set(HB_MEGALITH_STAGE, stage);
|
||||
_log.info("[Hellbound] - Enchanted Megaliths stage: " + stage);
|
||||
LOGGER.info("[Hellbound] - Enchanted Megaliths stage: " + stage);
|
||||
|
||||
switch (stage)
|
||||
{
|
||||
|
@@ -22,6 +22,7 @@ import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.CopyOnWriteArrayList;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import org.w3c.dom.Document;
|
||||
import org.w3c.dom.NamedNodeMap;
|
||||
@@ -57,6 +58,8 @@ import quests.Q00620_FourGoblets.Q00620_FourGoblets;
|
||||
*/
|
||||
public final class FourSepulchers extends AbstractNpcAI implements IGameXmlReader
|
||||
{
|
||||
Logger LOGGER = Logger.getLogger(FourSepulchers.class.getName());
|
||||
|
||||
// NPCs
|
||||
private static final int CONQUEROR_MANAGER = 31921;
|
||||
private static final int EMPEROR_MANAGER = 31922;
|
||||
@@ -678,7 +681,7 @@ public final class FourSepulchers extends AbstractNpcAI implements IGameXmlReade
|
||||
{
|
||||
ROOM_SPAWN_DATA.clear();
|
||||
parseDatapackFile("data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.xml");
|
||||
_log.info("[Four Sepulchers] Loaded " + ROOM_SPAWN_DATA.size() + " spawn zones data.");
|
||||
LOGGER.info("[Four Sepulchers] Loaded " + ROOM_SPAWN_DATA.size() + " spawn zones data.");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -319,7 +319,7 @@ public final class Raina extends AbstractNpcAI
|
||||
|
||||
if (cType == null)
|
||||
{
|
||||
_log.warning(getClass().getSimpleName() + ": Cannot parse CategoryType, event: " + event);
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Cannot parse CategoryType, event: " + event);
|
||||
}
|
||||
|
||||
final StringBuilder sb = new StringBuilder();
|
||||
@@ -404,7 +404,7 @@ public final class Raina extends AbstractNpcAI
|
||||
|
||||
if (cType == null)
|
||||
{
|
||||
_log.warning(getClass().getSimpleName() + ": Cannot parse CategoryType, event: " + event);
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Cannot parse CategoryType, event: " + event);
|
||||
}
|
||||
|
||||
final StringBuilder sb = new StringBuilder();
|
||||
@@ -894,7 +894,7 @@ public final class Raina extends AbstractNpcAI
|
||||
final String text = getHtm(player.getHtmlPrefix(), fileName);
|
||||
if (text == null)
|
||||
{
|
||||
_log.info("Cannot find HTML file for " + Raina.class.getSimpleName() + " AI: " + fileName);
|
||||
LOGGER.info("Cannot find HTML file for " + Raina.class.getSimpleName() + " AI: " + fileName);
|
||||
return null;
|
||||
}
|
||||
html.setHtml(text);
|
||||
|
@@ -628,7 +628,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);
|
||||
}
|
||||
|
||||
|
@@ -271,12 +271,12 @@ public class Lindvior extends AbstractNpcAI
|
||||
if (!_zoneLair.isInsideZone(attacker))
|
||||
{
|
||||
attacker.doDie(null);
|
||||
_log.warning(getName() + ": Character: " + attacker.getName() + " attacked: " + npc.getName() + " out of the boss zone!");
|
||||
LOGGER.warning(getName() + ": Character: " + attacker.getName() + " attacked: " + npc.getName() + " out of the boss zone!");
|
||||
}
|
||||
if (!_zoneLair.isInsideZone(npc))
|
||||
{
|
||||
npc.teleToLocation(CENTER_LOCATION, true);
|
||||
_log.warning(getName() + ": Character: " + attacker.getName() + " attacked: " + npc.getName() + " wich is out of the boss zone!");
|
||||
LOGGER.warning(getName() + ": Character: " + attacker.getName() + " attacked: " + npc.getName() + " wich is out of the boss zone!");
|
||||
}
|
||||
|
||||
double percent = ((npc.getCurrentHp() - damage) / npc.getMaxHp()) * 100;
|
||||
|
@@ -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);
|
||||
|
@@ -23,6 +23,7 @@ import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import org.w3c.dom.Document;
|
||||
import org.w3c.dom.NamedNodeMap;
|
||||
@@ -67,6 +68,8 @@ import instances.AbstractInstance;
|
||||
*/
|
||||
public final class Stage1 extends AbstractInstance implements IGameXmlReader
|
||||
{
|
||||
Logger LOGGER = Logger.getLogger(Stage1.class.getName());
|
||||
|
||||
protected static class SODSpawn
|
||||
{
|
||||
public boolean isZone = false;
|
||||
@@ -207,7 +210,7 @@ public final class Stage1 extends AbstractInstance implements IGameXmlReader
|
||||
public void load()
|
||||
{
|
||||
parseDatapackFile("data/scripts/ai/bosses/Tiat/SeedOfDestruction.xml");
|
||||
_log.info("[Seed of Destruction] Loaded " + _spawnZoneList.size() + " spawn zones data.");
|
||||
LOGGER.info("[Seed of Destruction] Loaded " + _spawnZoneList.size() + " spawn zones data.");
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -346,7 +349,7 @@ public final class Stage1 extends AbstractInstance implements IGameXmlReader
|
||||
}
|
||||
else
|
||||
{
|
||||
_log.info("[Seed of Destruction] Missing zone: " + spw.zone);
|
||||
LOGGER.info("[Seed of Destruction] Missing zone: " + spw.zone);
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -150,7 +150,7 @@ public final class CastleAmbassador extends AbstractNpcAI
|
||||
if (fort == null)
|
||||
{
|
||||
npc.deleteMe();
|
||||
_log.warning("Spawned: " + npc + " location: " + npc.getLocation() + " without fort!");
|
||||
LOGGER.warning("Spawned: " + npc + " location: " + npc.getLocation() + " without fort!");
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@@ -1245,7 +1245,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() + "!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -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() + "!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -73,7 +73,7 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
|
||||
"watchmatch",
|
||||
"arenachange"
|
||||
};
|
||||
private static final Logger _LOG = Logger.getLogger(OlyManager.class.getName());
|
||||
private static final Logger LOGGER = Logger.getLogger(OlyManager.class.getName());
|
||||
|
||||
private OlyManager()
|
||||
{
|
||||
@@ -364,7 +364,7 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
|
||||
final List<Location> spectatorSpawns = nextArena.getStadium().getZone().getSpectatorSpawns();
|
||||
if (spectatorSpawns.isEmpty())
|
||||
{
|
||||
_LOG.warning(getClass().getSimpleName() + ": Zone: " + nextArena.getStadium().getZone() + " doesn't have specatator spawns defined!");
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Zone: " + nextArena.getStadium().getZone() + " doesn't have specatator spawns defined!");
|
||||
return false;
|
||||
}
|
||||
final Location loc = spectatorSpawns.get(Rnd.get(spectatorSpawns.size()));
|
||||
@@ -375,7 +375,7 @@ public final class OlyManager extends AbstractNpcAI 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;
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -95,7 +95,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;
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -63,7 +63,7 @@ public class ListenerTest extends AbstractNpcAI
|
||||
// Manual listener registration
|
||||
Containers.Global().addListener(new ConsumerEventListener(Containers.Global(), EventType.ON_PLAYER_DLG_ANSWER, (OnPlayerDlgAnswer event) ->
|
||||
{
|
||||
_log.info(getClass().getSimpleName() + ": " + event.getActiveChar() + " OnPlayerDlgAnswer: Answer: " + event.getAnswer() + " MessageId: " + event.getMessageId());
|
||||
LOGGER.info(getClass().getSimpleName() + ": " + event.getActiveChar() + " OnPlayerDlgAnswer: Answer: " + event.getAnswer() + " MessageId: " + event.getMessageId());
|
||||
}, this));
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ public class ListenerTest extends AbstractNpcAI
|
||||
*/
|
||||
private void onAttackableAttack(OnAttackableAttack event)
|
||||
{
|
||||
_log.info(getClass().getSimpleName() + ": " + event.getClass().getSimpleName() + " invoked attacker: " + event.getAttacker() + " target: " + event.getTarget() + " damage: " + event.getDamage() + " skill: " + event.getSkill());
|
||||
LOGGER.info(getClass().getSimpleName() + ": " + event.getClass().getSimpleName() + " invoked attacker: " + event.getAttacker() + " target: " + event.getTarget() + " damage: " + event.getDamage() + " skill: " + event.getSkill());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -88,7 +88,7 @@ public class ListenerTest extends AbstractNpcAI
|
||||
@Id(22228)
|
||||
private void onCreatureKill(OnCreatureDeath event)
|
||||
{
|
||||
_log.info(getClass().getSimpleName() + ": " + event.getClass().getSimpleName() + " invoked attacker: " + event.getAttacker() + " target: " + event.getTarget());
|
||||
LOGGER.info(getClass().getSimpleName() + ": " + event.getClass().getSimpleName() + " invoked attacker: " + event.getAttacker() + " target: " + event.getTarget());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -101,7 +101,7 @@ public class ListenerTest extends AbstractNpcAI
|
||||
@Range(from = 1, to = 9)
|
||||
private void onSiegeStart(OnCastleSiegeStart event)
|
||||
{
|
||||
_log.info(getClass().getSimpleName() + ": The siege of " + event.getSiege().getCastle().getName() + " (" + event.getSiege().getCastle().getResidenceId() + ") has started!");
|
||||
LOGGER.info(getClass().getSimpleName() + ": The siege of " + event.getSiege().getCastle().getName() + " (" + event.getSiege().getCastle().getResidenceId() + ") has started!");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -114,7 +114,7 @@ public class ListenerTest extends AbstractNpcAI
|
||||
@Id(5575)
|
||||
private void onItemCreate(OnItemCreate event)
|
||||
{
|
||||
_log.info(getClass().getSimpleName() + ": Item [" + event.getItem() + "] has been created actor: " + event.getActiveChar() + " process: " + event.getProcess() + " reference: " + event.getReference());
|
||||
LOGGER.info(getClass().getSimpleName() + ": Item [" + event.getItem() + "] has been created actor: " + event.getActiveChar() + " process: " + event.getProcess() + " reference: " + event.getReference());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -152,7 +152,7 @@ public class ListenerTest extends AbstractNpcAI
|
||||
@RegisterType(ListenerRegisterType.GLOBAL_PLAYERS)
|
||||
public void OnPlayerLogin(OnPlayerLogin event)
|
||||
{
|
||||
_log.info(getClass().getSimpleName() + ": Player: " + event.getActiveChar() + " has logged in!");
|
||||
LOGGER.info(getClass().getSimpleName() + ": Player: " + event.getActiveChar() + " has logged in!");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -170,7 +170,7 @@ public class ListenerTest extends AbstractNpcAI
|
||||
{
|
||||
if (event.getTarget().isGM())
|
||||
{
|
||||
_log.info(getClass().getSimpleName() + ": Player: " + event.getTarget() + " was prevented from dying!");
|
||||
LOGGER.info(getClass().getSimpleName() + ": Player: " + event.getTarget() + " was prevented from dying!");
|
||||
return new TerminateReturn(true, true, true);
|
||||
}
|
||||
return null;
|
||||
|
@@ -339,7 +339,7 @@ import handlers.voicedcommandhandlers.StatsVCmd;
|
||||
*/
|
||||
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 =
|
||||
{
|
||||
@@ -676,7 +676,7 @@ public class MasterHandler
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
_log.info("Loading Handlers...");
|
||||
LOGGER.info("Loading Handlers...");
|
||||
|
||||
final Map<IHandler<?, ?>, Method> registerHandlerMethods = new HashMap<>();
|
||||
for (IHandler<?, ?> loadInstance : LOAD_INSTANCES)
|
||||
@@ -693,7 +693,7 @@ public class MasterHandler
|
||||
|
||||
registerHandlerMethods.entrySet().stream().filter(e -> e.getValue() == null).forEach(e ->
|
||||
{
|
||||
_log.warning("Failed loading handlers of: " + e.getKey().getClass().getSimpleName() + " seems registerHandler function does not exist.");
|
||||
LOGGER.warning("Failed loading handlers of: " + e.getKey().getClass().getSimpleName() + " seems registerHandler function does not exist.");
|
||||
});
|
||||
|
||||
for (Class<?> classes[] : HANDLERS)
|
||||
@@ -718,7 +718,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;
|
||||
}
|
||||
}
|
||||
@@ -755,9 +755,9 @@ public class MasterHandler
|
||||
|
||||
for (IHandler<?, ?> loadInstance : LOAD_INSTANCES)
|
||||
{
|
||||
_log.info(loadInstance.getClass().getSimpleName() + ": Loaded " + loadInstance.size() + " Handlers");
|
||||
LOGGER.info(loadInstance.getClass().getSimpleName() + ": Loaded " + loadInstance.size() + " Handlers");
|
||||
}
|
||||
|
||||
_log.info("Handlers Loaded...");
|
||||
LOGGER.info("Handlers Loaded...");
|
||||
}
|
||||
}
|
||||
|
@@ -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
|
||||
|
@@ -41,7 +41,7 @@ import com.l2jmobius.gameserver.util.Util;
|
||||
*/
|
||||
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 =
|
||||
{
|
||||
@@ -121,7 +121,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.");
|
||||
}
|
||||
|
@@ -67,7 +67,7 @@ import com.l2jmobius.gameserver.network.serverpackets.UserInfo;
|
||||
*/
|
||||
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 =
|
||||
{
|
||||
@@ -218,7 +218,7 @@ public class AdminEditChar implements IAdminCommandHandler
|
||||
{
|
||||
if (Config.DEVELOPER)
|
||||
{
|
||||
_log.warning("Set reputation error: " + e);
|
||||
LOGGER.warning("Set reputation error: " + e);
|
||||
}
|
||||
activeChar.sendMessage("Usage: //setreputation <new_reputation_value>");
|
||||
}
|
||||
@@ -261,7 +261,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>");
|
||||
}
|
||||
@@ -291,7 +291,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>");
|
||||
}
|
||||
@@ -321,7 +321,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>");
|
||||
}
|
||||
|
@@ -32,7 +32,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 =
|
||||
{
|
||||
@@ -146,7 +146,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.");
|
||||
}
|
||||
@@ -154,7 +154,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.");
|
||||
}
|
||||
|
@@ -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"
|
||||
@@ -57,7 +57,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.");
|
||||
}
|
||||
|
@@ -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"))
|
||||
@@ -190,7 +190,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);
|
||||
@@ -207,7 +207,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);
|
||||
|
@@ -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.warning(getClass().getSimpleName() + ": data/html/admin/punishment.htm is missing");
|
||||
LOGGER.warning(getClass().getSimpleName() + ": data/html/admin/punishment.htm is missing");
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -149,7 +149,7 @@ public class AdminPunishment implements IAdminCommandHandler
|
||||
}
|
||||
else
|
||||
{
|
||||
_log.warning(getClass().getSimpleName() + ": data/html/admin/punishment-info.htm is missing");
|
||||
LOGGER.warning(getClass().getSimpleName() + ": data/html/admin/punishment-info.htm is missing");
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -186,7 +186,7 @@ public class AdminPunishment implements IAdminCommandHandler
|
||||
}
|
||||
else
|
||||
{
|
||||
_log.warning(getClass().getSimpleName() + ": data/html/admin/punishment-player.htm is missing");
|
||||
LOGGER.warning(getClass().getSimpleName() + ": data/html/admin/punishment-player.htm is missing");
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -36,7 +36,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 =
|
||||
{
|
||||
@@ -106,7 +106,7 @@ public class AdminShop implements IAdminCommandHandler
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_log.warning("admin buylist failed:" + command);
|
||||
LOGGER.warning("admin buylist failed:" + command);
|
||||
}
|
||||
|
||||
final ProductList buyList = BuyListData.getInstance().getBuyList(val);
|
||||
@@ -117,7 +117,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);
|
||||
}
|
||||
}
|
||||
|
@@ -42,7 +42,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 =
|
||||
{
|
||||
@@ -313,7 +313,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());
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -59,7 +59,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 =
|
||||
{
|
||||
@@ -526,7 +526,7 @@ public class AdminSkill implements IAdminCommandHandler
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_log.log(Level.WARNING, "", e);
|
||||
LOGGER.log(Level.WARNING, "", e);
|
||||
}
|
||||
if (skill != null)
|
||||
{
|
||||
|
@@ -49,7 +49,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;
|
||||
}
|
||||
}
|
||||
|
@@ -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);
|
||||
|
@@ -50,7 +50,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 =
|
||||
{
|
||||
@@ -525,7 +525,7 @@ public class AdminTeleport implements IAdminCommandHandler
|
||||
if (template1 == null)
|
||||
{
|
||||
activeChar.sendMessage("Incorrect monster template.");
|
||||
_log.warning("ERROR: NPC " + target.getObjectId() + " has a 'null' template.");
|
||||
LOGGER.warning("ERROR: NPC " + target.getObjectId() + " has a 'null' template.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -533,7 +533,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;
|
||||
@@ -575,7 +575,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;
|
||||
}
|
||||
DBSpawnManager.getInstance().deleteSpawn(spawn, true);
|
||||
|
@@ -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 =
|
||||
{
|
||||
@@ -68,7 +68,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;
|
||||
}
|
||||
}
|
||||
|
@@ -64,7 +64,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 =
|
||||
@@ -484,7 +484,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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -112,7 +112,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;
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -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;
|
||||
|
@@ -35,13 +35,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;
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -62,7 +62,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;
|
||||
}
|
||||
|
||||
@@ -101,7 +101,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;
|
||||
}
|
||||
|
||||
@@ -124,7 +124,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;
|
||||
@@ -571,7 +571,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());
|
||||
|
@@ -113,7 +113,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;
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -67,7 +67,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;
|
||||
}
|
||||
|
@@ -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 ProductList 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;
|
||||
}
|
||||
|
@@ -39,7 +39,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;
|
||||
}
|
||||
|
||||
|
@@ -74,7 +74,7 @@ public final class CallSkill extends AbstractEffect
|
||||
}
|
||||
else
|
||||
{
|
||||
_log.warning("Skill not found effect called from " + skill);
|
||||
LOGGER.warning("Skill not found effect called from " + skill);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -66,7 +66,7 @@ public final class CallSkillOnActionTime extends AbstractEffect
|
||||
}
|
||||
else
|
||||
{
|
||||
_log.warning("Skill not found effect called from " + skill);
|
||||
LOGGER.warning("Skill not found effect called from " + skill);
|
||||
}
|
||||
return skill.isToggle();
|
||||
}
|
||||
|
@@ -39,7 +39,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;
|
||||
}
|
||||
|
||||
@@ -57,11 +57,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.getKey());
|
||||
LOGGER.warning(getClass().getSimpleName() + ": value of L2TraitType enum required but found: " + param.getKey());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -48,7 +48,7 @@ public final class Disarmor extends AbstractEffect
|
||||
_slot = ItemTable.SLOTS.getOrDefault(slot, L2Item.SLOT_NONE);
|
||||
if (_slot == L2Item.SLOT_NONE)
|
||||
{
|
||||
_log.severe("Unknown bodypart slot for effect: " + slot);
|
||||
LOGGER.severe("Unknown bodypart slot for effect: " + slot);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -59,7 +59,7 @@ public final class Restoration extends AbstractEffect
|
||||
if ((_itemId <= 0) || (_itemCount <= 0))
|
||||
{
|
||||
effected.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;
|
||||
}
|
||||
|
||||
|
@@ -97,7 +97,7 @@ public final class Summon extends AbstractEffect
|
||||
if (summon.getLevel() >= ExperienceData.getInstance().getMaxLevel())
|
||||
{
|
||||
summon.getStat().setExp(ExperienceData.getInstance().getExpForLevel(ExperienceData.getInstance().getMaxLevel() - 1));
|
||||
_log.warning(getClass().getSimpleName() + ": (" + summon.getName() + ") NpcID: " + summon.getId() + " has a level above " + ExperienceData.getInstance().getMaxLevel() + ". Please rectify.");
|
||||
LOGGER.warning(getClass().getSimpleName() + ": (" + summon.getName() + ") NpcID: " + summon.getId() + " has a level above " + ExperienceData.getInstance().getMaxLevel() + ". Please rectify.");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -38,7 +38,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);
|
||||
|
@@ -64,7 +64,7 @@ public final class SummonCubic extends AbstractEffect
|
||||
|
||||
if (_cubicId < 0)
|
||||
{
|
||||
_log.warning(SummonCubic.class.getSimpleName() + ": Invalid Cubic ID:" + _cubicId + " in skill ID: " + skill.getId());
|
||||
LOGGER.warning(SummonCubic.class.getSimpleName() + ": Invalid Cubic ID:" + _cubicId + " in skill ID: " + skill.getId());
|
||||
return;
|
||||
}
|
||||
|
||||
|
@@ -66,7 +66,7 @@ public class SummonHallucination extends AbstractEffect
|
||||
|
||||
if ((_npcId <= 0) || (_npcCount <= 0))
|
||||
{
|
||||
_log.warning(SummonNpc.class.getSimpleName() + ": Invalid NPC ID or count skill ID: " + skill.getId());
|
||||
LOGGER.warning(SummonNpc.class.getSimpleName() + ": Invalid NPC ID or count skill ID: " + skill.getId());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ public class SummonHallucination 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:" + skill.getId());
|
||||
LOGGER.warning(SummonNpc.class.getSimpleName() + ": Spawn of the nonexisting NPC ID: " + _npcId + ", skill ID:" + skill.getId());
|
||||
return;
|
||||
}
|
||||
|
||||
|
@@ -87,7 +87,7 @@ public final class SummonMulti extends AbstractEffect
|
||||
if (summon.getLevel() >= ExperienceData.getInstance().getMaxLevel())
|
||||
{
|
||||
summon.getStat().setExp(ExperienceData.getInstance().getExpForLevel(ExperienceData.getInstance().getMaxLevel() - 1));
|
||||
_log.warning(getClass().getSimpleName() + ": (" + summon.getName() + ") NpcID: " + summon.getId() + " has a level above " + ExperienceData.getInstance().getMaxLevel() + ". Please rectify.");
|
||||
LOGGER.warning(getClass().getSimpleName() + ": (" + summon.getName() + ") NpcID: " + summon.getId() + " has a level above " + ExperienceData.getInstance().getMaxLevel() + ". Please rectify.");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -80,7 +80,7 @@ public final class SummonNpc extends AbstractEffect
|
||||
|
||||
if ((_npcId <= 0) || (_npcCount <= 0))
|
||||
{
|
||||
_log.warning(SummonNpc.class.getSimpleName() + ": Invalid NPC ID or count skill ID: " + skill.getId());
|
||||
LOGGER.warning(SummonNpc.class.getSimpleName() + ": Invalid NPC ID or count skill ID: " + skill.getId());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -93,7 +93,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:" + skill.getId());
|
||||
LOGGER.warning(SummonNpc.class.getSimpleName() + ": Spawn of the nonexisting NPC ID: " + _npcId + ", skill ID:" + skill.getId());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -162,7 +162,7 @@ public final class SummonNpc extends AbstractEffect
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_log.log(Level.WARNING, SummonNpc.class.getSimpleName() + ": Unable to create spawn. " + e.getMessage(), e);
|
||||
LOGGER.log(Level.WARNING, SummonNpc.class.getSimpleName() + ": Unable to create spawn. " + e.getMessage(), e);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@@ -75,14 +75,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 collar = holder.getItem();
|
||||
if (player.getInventory().getItemByObjectId(collar.getObjectId()) != collar)
|
||||
{
|
||||
_log.warning("Player: " + player + " is trying to summon pet from item that he doesn't owns.");
|
||||
LOGGER.warning("Player: " + player + " is trying to summon pet from item that he doesn't owns.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@@ -57,7 +57,7 @@ public final class SummonTrap extends AbstractEffect
|
||||
|
||||
if (_npcId <= 0)
|
||||
{
|
||||
_log.warning(SummonTrap.class.getSimpleName() + ": Invalid NPC ID:" + _npcId + " in skill ID: " + skill.getId());
|
||||
LOGGER.warning(SummonTrap.class.getSimpleName() + ": Invalid NPC ID:" + _npcId + " in skill ID: " + skill.getId());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -76,7 +76,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:" + skill.getId());
|
||||
LOGGER.warning(SummonTrap.class.getSimpleName() + ": Spawn of the non-existing Trap ID: " + _npcId + " in skill ID:" + skill.getId());
|
||||
return;
|
||||
}
|
||||
|
||||
|
@@ -110,7 +110,7 @@ public final class Synergy extends AbstractEffect
|
||||
}
|
||||
else
|
||||
{
|
||||
_log.warning("Skill not found effect called from " + skill);
|
||||
LOGGER.warning("Skill not found effect called from " + skill);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -146,7 +146,7 @@ public final class TriggerSkillByAttack extends AbstractEffect
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_log.log(Level.WARNING, "Exception in ITargetTypeHandler.getTarget(): " + e.getMessage(), e);
|
||||
LOGGER.log(Level.WARNING, "Exception in ITargetTypeHandler.getTarget(): " + e.getMessage(), e);
|
||||
}
|
||||
|
||||
if ((target != null) && target.isCharacter())
|
||||
|
@@ -64,7 +64,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;
|
||||
}
|
||||
|
||||
@@ -81,7 +81,7 @@ public final class TriggerSkillByAvoid extends AbstractEffect
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_log.log(Level.WARNING, "Exception in ITargetTypeHandler.getTarget(): " + e.getMessage(), e);
|
||||
LOGGER.log(Level.WARNING, "Exception in ITargetTypeHandler.getTarget(): " + e.getMessage(), e);
|
||||
}
|
||||
|
||||
if ((target != null) && target.isCharacter())
|
||||
|
@@ -88,7 +88,7 @@ public final class TriggerSkillByDamage extends AbstractEffect
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_log.log(Level.WARNING, "Exception in ITargetTypeHandler.getTarget(): " + e.getMessage(), e);
|
||||
LOGGER.log(Level.WARNING, "Exception in ITargetTypeHandler.getTarget(): " + e.getMessage(), e);
|
||||
}
|
||||
|
||||
if ((target != null) && target.isCharacter())
|
||||
|
@@ -91,7 +91,7 @@ public final class TriggerSkillByDeathBlow extends AbstractEffect
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_log.log(Level.WARNING, "Exception in ITargetTypeHandler.getTarget(): " + e.getMessage(), e);
|
||||
LOGGER.log(Level.WARNING, "Exception in ITargetTypeHandler.getTarget(): " + e.getMessage(), e);
|
||||
}
|
||||
|
||||
if ((target != null) && target.isCharacter())
|
||||
|
@@ -102,7 +102,7 @@ public final class TriggerSkillByMagicType extends AbstractEffect
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_log.log(Level.WARNING, "Exception in ITargetTypeHandler.getTarget(): " + e.getMessage(), e);
|
||||
LOGGER.log(Level.WARNING, "Exception in ITargetTypeHandler.getTarget(): " + e.getMessage(), e);
|
||||
}
|
||||
|
||||
if ((target != null) && target.isCharacter())
|
||||
|
@@ -114,7 +114,7 @@ public final class TriggerSkillBySkill extends AbstractEffect
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_log.log(Level.WARNING, "Exception in ITargetTypeHandler.getTarget(): " + e.getMessage(), e);
|
||||
LOGGER.log(Level.WARNING, "Exception in ITargetTypeHandler.getTarget(): " + e.getMessage(), e);
|
||||
}
|
||||
|
||||
if ((target != null) && target.isCharacter())
|
||||
|
@@ -97,7 +97,7 @@ public final class TriggerSkillBySkillAttack 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;
|
||||
}
|
||||
|
||||
@@ -124,7 +124,7 @@ public final class TriggerSkillBySkillAttack extends AbstractEffect
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_log.log(Level.WARNING, "Exception in ITargetTypeHandler.getTarget(): " + e.getMessage(), e);
|
||||
LOGGER.log(Level.WARNING, "Exception in ITargetTypeHandler.getTarget(): " + e.getMessage(), e);
|
||||
}
|
||||
|
||||
if ((target != null) && target.isCharacter())
|
||||
|
@@ -90,7 +90,7 @@ public class BeastSoulShot implements IItemHandler
|
||||
|
||||
if (skills == null)
|
||||
{
|
||||
_log.warning(getClass().getSimpleName() + ": is missing skills!");
|
||||
LOGGER.warning(getClass().getSimpleName() + ": is missing skills!");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@@ -92,7 +92,7 @@ public class BeastSpiritShot implements IItemHandler
|
||||
|
||||
if (skills == null)
|
||||
{
|
||||
_log.warning(getClass().getSimpleName() + ": is missing skills!");
|
||||
LOGGER.warning(getClass().getSimpleName() + ": is missing skills!");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@@ -52,7 +52,7 @@ public class BlessedSoulShots implements IItemHandler
|
||||
final List<ItemSkillHolder> skills = item.getItem().getSkills(ItemSkillType.NORMAL);
|
||||
if (skills == null)
|
||||
{
|
||||
_log.warning(getClass().getSimpleName() + ": is missing skills!");
|
||||
LOGGER.warning(getClass().getSimpleName() + ": is missing skills!");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@@ -48,7 +48,7 @@ public class BlessedSpiritShot implements IItemHandler
|
||||
final List<ItemSkillHolder> skills = item.getItem().getSkills(ItemSkillType.NORMAL);
|
||||
if (skills == null)
|
||||
{
|
||||
_log.warning(getClass().getSimpleName() + ": is missing skills!");
|
||||
LOGGER.warning(getClass().getSimpleName() + ": is missing skills!");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@@ -59,7 +59,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;
|
||||
@@ -103,7 +103,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;
|
||||
}
|
||||
}
|
||||
|
@@ -54,7 +54,7 @@ public class ExtractableItems implements IItemHandler
|
||||
final List<L2ExtractableProduct> exitems = etcitem.getExtractableItems();
|
||||
if (exitems == null)
|
||||
{
|
||||
_log.info("No extractable data defined for " + etcitem);
|
||||
LOGGER.info("No extractable data defined for " + etcitem);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@@ -84,7 +84,7 @@ public class FishShots implements IItemHandler
|
||||
|
||||
if (skills == null)
|
||||
{
|
||||
_log.warning(getClass().getSimpleName() + ": is missing skills!");
|
||||
LOGGER.warning(getClass().getSimpleName() + ": is missing skills!");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@@ -51,7 +51,7 @@ public final class Harvester implements IItemHandler
|
||||
final List<ItemSkillHolder> skills = item.getItem().getSkills(ItemSkillType.NORMAL);
|
||||
if (skills == null)
|
||||
{
|
||||
_log.warning(getClass().getSimpleName() + ": is missing skills!");
|
||||
LOGGER.warning(getClass().getSimpleName() + ": is missing skills!");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@@ -61,7 +61,7 @@ public class ItemSkillsTemplate implements IItemHandler
|
||||
final List<ItemSkillHolder> skills = item.getItem().getSkills(ItemSkillType.NORMAL);
|
||||
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;
|
||||
}
|
||||
|
||||
|
@@ -49,7 +49,7 @@ public class SoulShots implements IItemHandler
|
||||
final List<ItemSkillHolder> skills = item.getItem().getSkills(ItemSkillType.NORMAL);
|
||||
if (skills == null)
|
||||
{
|
||||
_log.warning(getClass().getSimpleName() + ": is missing skills!");
|
||||
LOGGER.warning(getClass().getSimpleName() + ": is missing skills!");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@@ -48,7 +48,7 @@ public class SpiritShot implements IItemHandler
|
||||
final List<ItemSkillHolder> skills = item.getItem().getSkills(ItemSkillType.NORMAL);
|
||||
if (skills == null)
|
||||
{
|
||||
_log.warning(getClass().getSimpleName() + ": is missing skills!");
|
||||
LOGGER.warning(getClass().getSimpleName() + ": is missing skills!");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@@ -35,7 +35,7 @@ import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
||||
*/
|
||||
public class ClanWarsList implements IUserCommandHandler
|
||||
{
|
||||
private static final Logger _log = Logger.getLogger(ClanWarsList.class.getName());
|
||||
private static final Logger LOGGER = Logger.getLogger(ClanWarsList.class.getName());
|
||||
private static final int[] COMMAND_IDS =
|
||||
{
|
||||
88,
|
||||
@@ -119,7 +119,7 @@ public class ClanWarsList implements IUserCommandHandler
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_log.log(Level.WARNING, "", e);
|
||||
LOGGER.log(Level.WARNING, "", e);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@@ -124,7 +124,7 @@ public abstract class AbstractInstance extends AbstractNpcAI
|
||||
final InstanceTemplate template = manager.getInstanceTemplate(templateId);
|
||||
if (template == null)
|
||||
{
|
||||
_log.warning("Player " + player.getName() + " (" + player.getObjectId() + ") wants to create instance with unknown template id " + templateId + "!");
|
||||
LOGGER.warning("Player " + player.getName() + " (" + player.getObjectId() + ") wants to create instance with unknown template id " + templateId + "!");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -133,7 +133,7 @@ public abstract class AbstractInstance extends AbstractNpcAI
|
||||
// When nobody can enter
|
||||
if (enterGroup == null)
|
||||
{
|
||||
_log.warning("Instance " + template.getName() + " (" + templateId + ") has invalid group size limits!");
|
||||
LOGGER.warning("Instance " + template.getName() + " (" + templateId + ") has invalid group size limits!");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -214,7 +214,7 @@ public abstract class AbstractInstance extends AbstractNpcAI
|
||||
}
|
||||
else
|
||||
{
|
||||
_log.warning("Missing start location for instance instance.getName() (" + instance.getId() + ")");
|
||||
LOGGER.warning("Missing start location for instance instance.getName() (" + instance.getId() + ")");
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -430,7 +430,7 @@ public final class ChamberOfDelusion extends AbstractInstance
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_log.log(Level.WARNING, "Error occured in room change task: ", e);
|
||||
LOGGER.log(Level.WARNING, "Error occured in room change task: ", e);
|
||||
}
|
||||
}, nextInterval - 5000);
|
||||
world.setParameter("roomChangeTask", roomChangeTask);
|
||||
|
@@ -655,7 +655,7 @@ public final class Kamaloka extends AbstractInstance
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_log.log(Level.WARNING, "", e);
|
||||
LOGGER.log(Level.WARNING, "", e);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
@@ -209,7 +209,7 @@ public class Q00350_EnhanceYourWeapon extends Quest
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_log.log(Level.SEVERE, "", e);
|
||||
LOGGER.log(Level.SEVERE, "", e);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -515,7 +515,7 @@ public class Q00350_EnhanceYourWeapon extends Quest
|
||||
File file = new File(Config.DATAPACK_ROOT, "data/LevelUpCrystalData.xml");
|
||||
if (!file.exists())
|
||||
{
|
||||
_log.severe("[EnhanceYourWeapon] Missing LevelUpCrystalData.xml. The quest wont work without it!");
|
||||
LOGGER.severe("[EnhanceYourWeapon] Missing LevelUpCrystalData.xml. The quest wont work without it!");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -535,7 +535,7 @@ public class Q00350_EnhanceYourWeapon extends Quest
|
||||
Node att = attrs.getNamedItem("itemId");
|
||||
if (att == null)
|
||||
{
|
||||
_log.severe("[EnhanceYourWeapon] Missing itemId in Crystal List, skipping");
|
||||
LOGGER.severe("[EnhanceYourWeapon] Missing itemId in Crystal List, skipping");
|
||||
continue;
|
||||
}
|
||||
int itemId = Integer.parseInt(attrs.getNamedItem("itemId").getNodeValue());
|
||||
@@ -543,7 +543,7 @@ public class Q00350_EnhanceYourWeapon extends Quest
|
||||
att = attrs.getNamedItem("level");
|
||||
if (att == null)
|
||||
{
|
||||
_log.severe("[EnhanceYourWeapon] Missing level in Crystal List itemId: " + itemId + ", skipping");
|
||||
LOGGER.severe("[EnhanceYourWeapon] Missing level in Crystal List itemId: " + itemId + ", skipping");
|
||||
continue;
|
||||
}
|
||||
int level = Integer.parseInt(attrs.getNamedItem("level").getNodeValue());
|
||||
@@ -551,7 +551,7 @@ public class Q00350_EnhanceYourWeapon extends Quest
|
||||
att = attrs.getNamedItem("leveledItemId");
|
||||
if (att == null)
|
||||
{
|
||||
_log.severe("[EnhanceYourWeapon] Missing leveledItemId in Crystal List itemId: " + itemId + ", skipping");
|
||||
LOGGER.severe("[EnhanceYourWeapon] Missing leveledItemId in Crystal List itemId: " + itemId + ", skipping");
|
||||
continue;
|
||||
}
|
||||
int leveledItemId = Integer.parseInt(attrs.getNamedItem("leveledItemId").getNodeValue());
|
||||
@@ -570,7 +570,7 @@ public class Q00350_EnhanceYourWeapon extends Quest
|
||||
Node att = attrs.getNamedItem("npcId");
|
||||
if (att == null)
|
||||
{
|
||||
_log.severe("[EnhanceYourWeapon] Missing npcId in NPC List, skipping");
|
||||
LOGGER.severe("[EnhanceYourWeapon] Missing npcId in NPC List, skipping");
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -608,7 +608,7 @@ public class Q00350_EnhanceYourWeapon extends Quest
|
||||
Node att2 = attrs.getNamedItem("levelList");
|
||||
if ((att1 == null) && (att2 == null))
|
||||
{
|
||||
_log.severe("[EnhanceYourWeapon] Missing maxlevel/levelList in NPC List npcId: " + npcId + ", skipping");
|
||||
LOGGER.severe("[EnhanceYourWeapon] Missing maxlevel/levelList in NPC List npcId: " + npcId + ", skipping");
|
||||
continue;
|
||||
}
|
||||
LevelingInfo info = new LevelingInfo(absorbType, isSkillNeeded, chance);
|
||||
@@ -629,7 +629,7 @@ public class Q00350_EnhanceYourWeapon extends Quest
|
||||
Integer value = Integer.decode(st.nextToken().trim());
|
||||
if (value == null)
|
||||
{
|
||||
_log.severe("[EnhanceYourWeapon] Bad Level value!! npcId: " + npcId + " token: " + i);
|
||||
LOGGER.severe("[EnhanceYourWeapon] Bad Level value!! npcId: " + npcId + " token: " + i);
|
||||
value = 0;
|
||||
}
|
||||
temp.put(value, info);
|
||||
@@ -640,7 +640,7 @@ public class Q00350_EnhanceYourWeapon extends Quest
|
||||
|
||||
if (temp.isEmpty())
|
||||
{
|
||||
_log.severe("[EnhanceYourWeapon] No leveling info for npcId: " + npcId + ", skipping");
|
||||
LOGGER.severe("[EnhanceYourWeapon] No leveling info for npcId: " + npcId + ", skipping");
|
||||
continue;
|
||||
}
|
||||
NPC_LEVELING_INFO.put(npcId, temp);
|
||||
@@ -652,9 +652,9 @@ public class Q00350_EnhanceYourWeapon extends Quest
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_log.log(Level.WARNING, "[EnhanceYourWeapon] Could not parse LevelUpCrystalData.xml file: " + e.getMessage(), e);
|
||||
LOGGER.log(Level.WARNING, "[EnhanceYourWeapon] Could not parse LevelUpCrystalData.xml file: " + e.getMessage(), e);
|
||||
}
|
||||
_log.info("[EnhanceYourWeapon] Loaded " + SOUL_CRYSTALS.size() + " Soul Crystal data.");
|
||||
_log.info("[EnhanceYourWeapon] Loaded " + NPC_LEVELING_INFO.size() + " npc Leveling info data.");
|
||||
LOGGER.info("[EnhanceYourWeapon] Loaded " + SOUL_CRYSTALS.size() + " Soul Crystal data.");
|
||||
LOGGER.info("[EnhanceYourWeapon] Loaded " + NPC_LEVELING_INFO.size() + " npc Leveling info data.");
|
||||
}
|
||||
}
|
||||
|
@@ -454,7 +454,7 @@ import quests.Q10800_ReconnaissanceAtDragonValley.Q10800_ReconnaissanceAtDragonV
|
||||
*/
|
||||
public class QuestMasterHandler
|
||||
{
|
||||
private static final Logger _log = Logger.getLogger(QuestMasterHandler.class.getName());
|
||||
private static final Logger LOGGER = Logger.getLogger(QuestMasterHandler.class.getName());
|
||||
|
||||
private static final Class<?>[] QUESTS =
|
||||
{
|
||||
@@ -899,7 +899,7 @@ public class QuestMasterHandler
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_log.log(Level.SEVERE, QuestMasterHandler.class.getSimpleName() + ": Failed loading " + quest.getSimpleName() + ":", e);
|
||||
LOGGER.log(Level.SEVERE, QuestMasterHandler.class.getSimpleName() + ": Failed loading " + quest.getSimpleName() + ":", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -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;
|
||||
@@ -334,7 +334,7 @@ public abstract class AirShipController extends AbstractNpcAI
|
||||
final L2ScriptZone zone = ZoneManager.getInstance().getZoneById(_dockZone, L2ScriptZone.class);
|
||||
if (zone == null)
|
||||
{
|
||||
_log.warning(getName() + ": Invalid zone " + _dockZone + ", controller disabled");
|
||||
LOGGER.warning(getName() + ": Invalid zone " + _dockZone + ", controller disabled");
|
||||
_isBusy = true;
|
||||
return;
|
||||
}
|
||||
@@ -344,7 +344,7 @@ public abstract class AirShipController extends AbstractNpcAI
|
||||
{
|
||||
if (_arrivalPath.length == 0)
|
||||
{
|
||||
_log.warning(getName() + ": Zero arrival path length.");
|
||||
LOGGER.warning(getName() + ": Zero arrival path length.");
|
||||
_arrivalPath = null;
|
||||
}
|
||||
else
|
||||
@@ -352,7 +352,7 @@ public abstract class AirShipController extends AbstractNpcAI
|
||||
p = _arrivalPath[_arrivalPath.length - 1];
|
||||
if (!zone.isInsideZone(p.getLocation()))
|
||||
{
|
||||
_log.warning(getName() + ": Arrival path finish point (" + p.getX() + "," + p.getY() + "," + p.getZ() + ") not in zone " + _dockZone);
|
||||
LOGGER.warning(getName() + ": Arrival path finish point (" + p.getX() + "," + p.getY() + "," + p.getZ() + ") not in zone " + _dockZone);
|
||||
_arrivalPath = null;
|
||||
}
|
||||
}
|
||||
@@ -361,7 +361,7 @@ public abstract class AirShipController extends AbstractNpcAI
|
||||
{
|
||||
if (!ZoneManager.getInstance().getZoneById(_dockZone, L2ScriptZone.class).isInsideZone(_shipSpawnX, _shipSpawnY, _shipSpawnZ))
|
||||
{
|
||||
_log.warning(getName() + ": Arrival path is null and spawn point not in zone " + _dockZone + ", controller disabled");
|
||||
LOGGER.warning(getName() + ": Arrival path is null and spawn point not in zone " + _dockZone + ", controller disabled");
|
||||
_isBusy = true;
|
||||
return;
|
||||
}
|
||||
@@ -371,7 +371,7 @@ public abstract class AirShipController extends AbstractNpcAI
|
||||
{
|
||||
if (_departPath.length == 0)
|
||||
{
|
||||
_log.warning(getName() + ": Zero depart path length.");
|
||||
LOGGER.warning(getName() + ": Zero depart path length.");
|
||||
_departPath = null;
|
||||
}
|
||||
else
|
||||
@@ -379,7 +379,7 @@ public abstract class AirShipController extends AbstractNpcAI
|
||||
p = _departPath[_departPath.length - 1];
|
||||
if (zone.isInsideZone(p.getLocation()))
|
||||
{
|
||||
_log.warning(getName() + ": Departure path finish point (" + p.getX() + "," + p.getY() + "," + p.getZ() + ") in zone " + _dockZone);
|
||||
LOGGER.warning(getName() + ": Departure path finish point (" + p.getX() + "," + p.getY() + "," + p.getZ() + ") in zone " + _dockZone);
|
||||
_departPath = null;
|
||||
}
|
||||
}
|
||||
@@ -389,11 +389,11 @@ public abstract class AirShipController extends AbstractNpcAI
|
||||
{
|
||||
if (_fuelTable == null)
|
||||
{
|
||||
_log.warning(getName() + ": Fuel consumption not defined.");
|
||||
LOGGER.warning(getName() + ": Fuel consumption not defined.");
|
||||
}
|
||||
else if (_teleportsTable.length != _fuelTable.length)
|
||||
{
|
||||
_log.warning(getName() + ": Fuel consumption not match teleport list.");
|
||||
LOGGER.warning(getName() + ": Fuel consumption not match teleport list.");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -32,7 +32,7 @@ import com.l2jmobius.gameserver.network.serverpackets.PlaySound;
|
||||
*/
|
||||
public class BoatGludinRune implements Runnable
|
||||
{
|
||||
private static final Logger _log = Logger.getLogger(BoatGludinRune.class.getName());
|
||||
private static final Logger LOGGER = Logger.getLogger(BoatGludinRune.class.getName());
|
||||
|
||||
// Time: 1151s
|
||||
private static final VehiclePathPoint[] GLUDIN_TO_RUNE =
|
||||
@@ -343,7 +343,7 @@ public class BoatGludinRune implements Runnable
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_log.warning(e.getMessage());
|
||||
LOGGER.warning(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -32,7 +32,7 @@ import com.l2jmobius.gameserver.network.serverpackets.PlaySound;
|
||||
*/
|
||||
public class BoatInnadrilTour implements Runnable
|
||||
{
|
||||
private static final Logger _log = Logger.getLogger(BoatInnadrilTour.class.getName());
|
||||
private static final Logger LOGGER = Logger.getLogger(BoatInnadrilTour.class.getName());
|
||||
|
||||
// Time: 1867s
|
||||
private static final VehiclePathPoint[] TOUR =
|
||||
@@ -186,7 +186,7 @@ public class BoatInnadrilTour implements Runnable
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_log.warning(e.getMessage());
|
||||
LOGGER.warning(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -32,7 +32,7 @@ import com.l2jmobius.gameserver.network.serverpackets.PlaySound;
|
||||
*/
|
||||
public class BoatRunePrimeval implements Runnable
|
||||
{
|
||||
private static final Logger _log = Logger.getLogger(BoatRunePrimeval.class.getName());
|
||||
private static final Logger LOGGER = Logger.getLogger(BoatRunePrimeval.class.getName());
|
||||
|
||||
// Time: 239s
|
||||
private static final VehiclePathPoint[] RUNE_TO_PRIMEVAL =
|
||||
@@ -168,7 +168,7 @@ public class BoatRunePrimeval implements Runnable
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_log.warning(e.getMessage());
|
||||
LOGGER.warning(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user