Some logger constants to uppercase.
This commit is contained in:
parent
c0b724cb17
commit
565e8f2621
@ -95,7 +95,7 @@ import com.l2jmobius.gameserver.util.GMAudit;
|
|||||||
public final class L2ItemInstance extends L2Object
|
public final class L2ItemInstance extends L2Object
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(L2ItemInstance.class.getName());
|
private static final Logger LOGGER = Logger.getLogger(L2ItemInstance.class.getName());
|
||||||
private static final Logger _logItems = Logger.getLogger("item");
|
private static final Logger LOG_ITEMS = Logger.getLogger("item");
|
||||||
|
|
||||||
/** ID of the owner */
|
/** ID of the owner */
|
||||||
private int _ownerId;
|
private int _ownerId;
|
||||||
@ -326,7 +326,7 @@ public final class L2ItemInstance extends L2Object
|
|||||||
{
|
{
|
||||||
if (getEnchantLevel() > 0)
|
if (getEnchantLevel() > 0)
|
||||||
{
|
{
|
||||||
_logItems.info("SETOWNER:" + String.valueOf(process) // in case of null
|
LOG_ITEMS.info("SETOWNER:" + String.valueOf(process) // in case of null
|
||||||
+ ", item " + getObjectId() //
|
+ ", item " + getObjectId() //
|
||||||
+ ":+" + getEnchantLevel() //
|
+ ":+" + getEnchantLevel() //
|
||||||
+ " " + getItem().getName() //
|
+ " " + getItem().getName() //
|
||||||
@ -336,7 +336,7 @@ public final class L2ItemInstance extends L2Object
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_logItems.info("SETOWNER:" + String.valueOf(process) // in case of null
|
LOG_ITEMS.info("SETOWNER:" + String.valueOf(process) // in case of null
|
||||||
+ ", item " + getObjectId() //
|
+ ", item " + getObjectId() //
|
||||||
+ ":" + getItem().getName() //
|
+ ":" + getItem().getName() //
|
||||||
+ "(" + _count + "), " //
|
+ "(" + _count + "), " //
|
||||||
@ -500,7 +500,7 @@ public final class L2ItemInstance extends L2Object
|
|||||||
{
|
{
|
||||||
if (getEnchantLevel() > 0)
|
if (getEnchantLevel() > 0)
|
||||||
{
|
{
|
||||||
_logItems.info("CHANGE:" + String.valueOf(process) // in case of null
|
LOG_ITEMS.info("CHANGE:" + String.valueOf(process) // in case of null
|
||||||
+ ", item " + getObjectId() //
|
+ ", item " + getObjectId() //
|
||||||
+ ":+" + getEnchantLevel() //
|
+ ":+" + getEnchantLevel() //
|
||||||
+ " " + getItem().getName() //
|
+ " " + getItem().getName() //
|
||||||
@ -511,7 +511,7 @@ public final class L2ItemInstance extends L2Object
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_logItems.info("CHANGE:" + String.valueOf(process) // in case of null
|
LOG_ITEMS.info("CHANGE:" + String.valueOf(process) // in case of null
|
||||||
+ ", item " + getObjectId() //
|
+ ", item " + getObjectId() //
|
||||||
+ ":" + getItem().getName() //
|
+ ":" + getItem().getName() //
|
||||||
+ "(" + _count + "), PrevCount(" //
|
+ "(" + _count + "), PrevCount(" //
|
||||||
|
@ -51,7 +51,7 @@ import com.l2jmobius.gameserver.util.Util;
|
|||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
public final class CharacterCreate implements IClientIncomingPacket
|
public final class CharacterCreate implements IClientIncomingPacket
|
||||||
{
|
{
|
||||||
protected static final Logger _logAccounting = Logger.getLogger("accounting");
|
protected static final Logger LOG_ACCOUNTING = Logger.getLogger("accounting");
|
||||||
|
|
||||||
// cSdddddddddddd
|
// cSdddddddddddd
|
||||||
private String _name;
|
private String _name;
|
||||||
@ -252,7 +252,7 @@ public final class CharacterCreate implements IClientIncomingPacket
|
|||||||
|
|
||||||
initNewChar(client, newChar);
|
initNewChar(client, newChar);
|
||||||
|
|
||||||
_logAccounting.info("Created new character, " + newChar + ", " + client);
|
LOG_ACCOUNTING.info("Created new character, " + newChar + ", " + client);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean isValidName(String text)
|
private static boolean isValidName(String text)
|
||||||
|
@ -46,7 +46,7 @@ import com.l2jmobius.gameserver.network.serverpackets.ServerClose;
|
|||||||
*/
|
*/
|
||||||
public class CharacterSelect implements IClientIncomingPacket
|
public class CharacterSelect implements IClientIncomingPacket
|
||||||
{
|
{
|
||||||
protected static final Logger _logAccounting = Logger.getLogger("accounting");
|
protected static final Logger LOG_ACCOUNTING = Logger.getLogger("accounting");
|
||||||
|
|
||||||
// cd
|
// cd
|
||||||
private int _charSlot;
|
private int _charSlot;
|
||||||
@ -175,7 +175,7 @@ public class CharacterSelect implements IClientIncomingPacket
|
|||||||
client.getActiveCharLock().unlock();
|
client.getActiveCharLock().unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
_logAccounting.info("Logged in, " + client);
|
LOG_ACCOUNTING.info("Logged in, " + client);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ import com.l2jmobius.gameserver.network.serverpackets.KeyPacket;
|
|||||||
*/
|
*/
|
||||||
public final class ProtocolVersion implements IClientIncomingPacket
|
public final class ProtocolVersion implements IClientIncomingPacket
|
||||||
{
|
{
|
||||||
private static final Logger _logAccounting = Logger.getLogger("accounting");
|
private static final Logger LOG_ACCOUNTING = Logger.getLogger("accounting");
|
||||||
|
|
||||||
private int _version;
|
private int _version;
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ public final class ProtocolVersion implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
else if (!Config.PROTOCOL_LIST.contains(_version))
|
else if (!Config.PROTOCOL_LIST.contains(_version))
|
||||||
{
|
{
|
||||||
_logAccounting.warning("Wrong protocol version " + _version + ", " + client);
|
LOG_ACCOUNTING.warning("Wrong protocol version " + _version + ", " + client);
|
||||||
client.setProtocolOk(false);
|
client.setProtocolOk(false);
|
||||||
client.close(new KeyPacket(client.enableCrypt(), 0));
|
client.close(new KeyPacket(client.enableCrypt(), 0));
|
||||||
}
|
}
|
||||||
|
@ -99,7 +99,7 @@ import com.l2jmobius.gameserver.util.GMAudit;
|
|||||||
public final class L2ItemInstance extends L2Object
|
public final class L2ItemInstance extends L2Object
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(L2ItemInstance.class.getName());
|
private static final Logger LOGGER = Logger.getLogger(L2ItemInstance.class.getName());
|
||||||
private static final Logger _logItems = Logger.getLogger("item");
|
private static final Logger LOG_ITEMS = Logger.getLogger("item");
|
||||||
|
|
||||||
/** ID of the owner */
|
/** ID of the owner */
|
||||||
private int _ownerId;
|
private int _ownerId;
|
||||||
@ -333,7 +333,7 @@ public final class L2ItemInstance extends L2Object
|
|||||||
{
|
{
|
||||||
if (getEnchantLevel() > 0)
|
if (getEnchantLevel() > 0)
|
||||||
{
|
{
|
||||||
_logItems.info("SETOWNER:" + String.valueOf(process) // in case of null
|
LOG_ITEMS.info("SETOWNER:" + String.valueOf(process) // in case of null
|
||||||
+ ", item " + getObjectId() //
|
+ ", item " + getObjectId() //
|
||||||
+ ":+" + getEnchantLevel() //
|
+ ":+" + getEnchantLevel() //
|
||||||
+ " " + getItem().getName() //
|
+ " " + getItem().getName() //
|
||||||
@ -343,7 +343,7 @@ public final class L2ItemInstance extends L2Object
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_logItems.info("SETOWNER:" + String.valueOf(process) // in case of null
|
LOG_ITEMS.info("SETOWNER:" + String.valueOf(process) // in case of null
|
||||||
+ ", item " + getObjectId() //
|
+ ", item " + getObjectId() //
|
||||||
+ ":" + getItem().getName() //
|
+ ":" + getItem().getName() //
|
||||||
+ "(" + _count + "), " //
|
+ "(" + _count + "), " //
|
||||||
@ -507,7 +507,7 @@ public final class L2ItemInstance extends L2Object
|
|||||||
{
|
{
|
||||||
if (getEnchantLevel() > 0)
|
if (getEnchantLevel() > 0)
|
||||||
{
|
{
|
||||||
_logItems.info("CHANGE:" + String.valueOf(process) // in case of null
|
LOG_ITEMS.info("CHANGE:" + String.valueOf(process) // in case of null
|
||||||
+ ", item " + getObjectId() //
|
+ ", item " + getObjectId() //
|
||||||
+ ":+" + getEnchantLevel() //
|
+ ":+" + getEnchantLevel() //
|
||||||
+ " " + getItem().getName() //
|
+ " " + getItem().getName() //
|
||||||
@ -518,7 +518,7 @@ public final class L2ItemInstance extends L2Object
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_logItems.info("CHANGE:" + String.valueOf(process) // in case of null
|
LOG_ITEMS.info("CHANGE:" + String.valueOf(process) // in case of null
|
||||||
+ ", item " + getObjectId() //
|
+ ", item " + getObjectId() //
|
||||||
+ ":" + getItem().getName() //
|
+ ":" + getItem().getName() //
|
||||||
+ "(" + _count + "), PrevCount(" //
|
+ "(" + _count + "), PrevCount(" //
|
||||||
|
@ -51,7 +51,7 @@ import com.l2jmobius.gameserver.util.Util;
|
|||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
public final class CharacterCreate implements IClientIncomingPacket
|
public final class CharacterCreate implements IClientIncomingPacket
|
||||||
{
|
{
|
||||||
protected static final Logger _logAccounting = Logger.getLogger("accounting");
|
protected static final Logger LOG_ACCOUNTING = Logger.getLogger("accounting");
|
||||||
|
|
||||||
// cSdddddddddddd
|
// cSdddddddddddd
|
||||||
private String _name;
|
private String _name;
|
||||||
@ -252,7 +252,7 @@ public final class CharacterCreate implements IClientIncomingPacket
|
|||||||
|
|
||||||
initNewChar(client, newChar);
|
initNewChar(client, newChar);
|
||||||
|
|
||||||
_logAccounting.info("Created new character, " + newChar + ", " + client);
|
LOG_ACCOUNTING.info("Created new character, " + newChar + ", " + client);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean isValidName(String text)
|
private static boolean isValidName(String text)
|
||||||
|
@ -46,7 +46,7 @@ import com.l2jmobius.gameserver.network.serverpackets.ServerClose;
|
|||||||
*/
|
*/
|
||||||
public class CharacterSelect implements IClientIncomingPacket
|
public class CharacterSelect implements IClientIncomingPacket
|
||||||
{
|
{
|
||||||
protected static final Logger _logAccounting = Logger.getLogger("accounting");
|
protected static final Logger LOG_ACCOUNTING = Logger.getLogger("accounting");
|
||||||
|
|
||||||
// cd
|
// cd
|
||||||
private int _charSlot;
|
private int _charSlot;
|
||||||
@ -175,7 +175,7 @@ public class CharacterSelect implements IClientIncomingPacket
|
|||||||
client.getActiveCharLock().unlock();
|
client.getActiveCharLock().unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
_logAccounting.info("Logged in, " + client);
|
LOG_ACCOUNTING.info("Logged in, " + client);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ import com.l2jmobius.gameserver.network.serverpackets.KeyPacket;
|
|||||||
*/
|
*/
|
||||||
public final class ProtocolVersion implements IClientIncomingPacket
|
public final class ProtocolVersion implements IClientIncomingPacket
|
||||||
{
|
{
|
||||||
private static final Logger _logAccounting = Logger.getLogger("accounting");
|
private static final Logger LOG_ACCOUNTING = Logger.getLogger("accounting");
|
||||||
|
|
||||||
private int _version;
|
private int _version;
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ public final class ProtocolVersion implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
else if (!Config.PROTOCOL_LIST.contains(_version))
|
else if (!Config.PROTOCOL_LIST.contains(_version))
|
||||||
{
|
{
|
||||||
_logAccounting.warning("Wrong protocol version " + _version + ", " + client);
|
LOG_ACCOUNTING.warning("Wrong protocol version " + _version + ", " + client);
|
||||||
client.setProtocolOk(false);
|
client.setProtocolOk(false);
|
||||||
client.close(new KeyPacket(client.enableCrypt(), 0));
|
client.close(new KeyPacket(client.enableCrypt(), 0));
|
||||||
}
|
}
|
||||||
|
@ -99,7 +99,7 @@ import com.l2jmobius.gameserver.util.GMAudit;
|
|||||||
public final class L2ItemInstance extends L2Object
|
public final class L2ItemInstance extends L2Object
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(L2ItemInstance.class.getName());
|
private static final Logger LOGGER = Logger.getLogger(L2ItemInstance.class.getName());
|
||||||
private static final Logger _logItems = Logger.getLogger("item");
|
private static final Logger LOG_ITEMS = Logger.getLogger("item");
|
||||||
|
|
||||||
/** ID of the owner */
|
/** ID of the owner */
|
||||||
private int _ownerId;
|
private int _ownerId;
|
||||||
@ -333,7 +333,7 @@ public final class L2ItemInstance extends L2Object
|
|||||||
{
|
{
|
||||||
if (getEnchantLevel() > 0)
|
if (getEnchantLevel() > 0)
|
||||||
{
|
{
|
||||||
_logItems.info("SETOWNER:" + String.valueOf(process) // in case of null
|
LOG_ITEMS.info("SETOWNER:" + String.valueOf(process) // in case of null
|
||||||
+ ", item " + getObjectId() //
|
+ ", item " + getObjectId() //
|
||||||
+ ":+" + getEnchantLevel() //
|
+ ":+" + getEnchantLevel() //
|
||||||
+ " " + getItem().getName() //
|
+ " " + getItem().getName() //
|
||||||
@ -343,7 +343,7 @@ public final class L2ItemInstance extends L2Object
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_logItems.info("SETOWNER:" + String.valueOf(process) // in case of null
|
LOG_ITEMS.info("SETOWNER:" + String.valueOf(process) // in case of null
|
||||||
+ ", item " + getObjectId() //
|
+ ", item " + getObjectId() //
|
||||||
+ ":" + getItem().getName() //
|
+ ":" + getItem().getName() //
|
||||||
+ "(" + _count + "), " //
|
+ "(" + _count + "), " //
|
||||||
@ -507,7 +507,7 @@ public final class L2ItemInstance extends L2Object
|
|||||||
{
|
{
|
||||||
if (getEnchantLevel() > 0)
|
if (getEnchantLevel() > 0)
|
||||||
{
|
{
|
||||||
_logItems.info("CHANGE:" + String.valueOf(process) // in case of null
|
LOG_ITEMS.info("CHANGE:" + String.valueOf(process) // in case of null
|
||||||
+ ", item " + getObjectId() //
|
+ ", item " + getObjectId() //
|
||||||
+ ":+" + getEnchantLevel() //
|
+ ":+" + getEnchantLevel() //
|
||||||
+ " " + getItem().getName() //
|
+ " " + getItem().getName() //
|
||||||
@ -518,7 +518,7 @@ public final class L2ItemInstance extends L2Object
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_logItems.info("CHANGE:" + String.valueOf(process) // in case of null
|
LOG_ITEMS.info("CHANGE:" + String.valueOf(process) // in case of null
|
||||||
+ ", item " + getObjectId() //
|
+ ", item " + getObjectId() //
|
||||||
+ ":" + getItem().getName() //
|
+ ":" + getItem().getName() //
|
||||||
+ "(" + _count + "), PrevCount(" //
|
+ "(" + _count + "), PrevCount(" //
|
||||||
|
@ -51,7 +51,7 @@ import com.l2jmobius.gameserver.util.Util;
|
|||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
public final class CharacterCreate implements IClientIncomingPacket
|
public final class CharacterCreate implements IClientIncomingPacket
|
||||||
{
|
{
|
||||||
protected static final Logger _logAccounting = Logger.getLogger("accounting");
|
protected static final Logger LOG_ACCOUNTING = Logger.getLogger("accounting");
|
||||||
|
|
||||||
// cSdddddddddddd
|
// cSdddddddddddd
|
||||||
private String _name;
|
private String _name;
|
||||||
@ -252,7 +252,7 @@ public final class CharacterCreate implements IClientIncomingPacket
|
|||||||
|
|
||||||
initNewChar(client, newChar);
|
initNewChar(client, newChar);
|
||||||
|
|
||||||
_logAccounting.info("Created new character, " + newChar + ", " + client);
|
LOG_ACCOUNTING.info("Created new character, " + newChar + ", " + client);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean isValidName(String text)
|
private static boolean isValidName(String text)
|
||||||
|
@ -46,7 +46,7 @@ import com.l2jmobius.gameserver.network.serverpackets.ServerClose;
|
|||||||
*/
|
*/
|
||||||
public class CharacterSelect implements IClientIncomingPacket
|
public class CharacterSelect implements IClientIncomingPacket
|
||||||
{
|
{
|
||||||
protected static final Logger _logAccounting = Logger.getLogger("accounting");
|
protected static final Logger LOG_ACCOUNTING = Logger.getLogger("accounting");
|
||||||
|
|
||||||
// cd
|
// cd
|
||||||
private int _charSlot;
|
private int _charSlot;
|
||||||
@ -175,7 +175,7 @@ public class CharacterSelect implements IClientIncomingPacket
|
|||||||
client.getActiveCharLock().unlock();
|
client.getActiveCharLock().unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
_logAccounting.info("Logged in, " + client);
|
LOG_ACCOUNTING.info("Logged in, " + client);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ import com.l2jmobius.gameserver.network.serverpackets.KeyPacket;
|
|||||||
*/
|
*/
|
||||||
public final class ProtocolVersion implements IClientIncomingPacket
|
public final class ProtocolVersion implements IClientIncomingPacket
|
||||||
{
|
{
|
||||||
private static final Logger _logAccounting = Logger.getLogger("accounting");
|
private static final Logger LOG_ACCOUNTING = Logger.getLogger("accounting");
|
||||||
|
|
||||||
private int _version;
|
private int _version;
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ public final class ProtocolVersion implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
else if (!Config.PROTOCOL_LIST.contains(_version))
|
else if (!Config.PROTOCOL_LIST.contains(_version))
|
||||||
{
|
{
|
||||||
_logAccounting.warning("Wrong protocol version " + _version + ", " + client);
|
LOG_ACCOUNTING.warning("Wrong protocol version " + _version + ", " + client);
|
||||||
client.setProtocolOk(false);
|
client.setProtocolOk(false);
|
||||||
client.close(new KeyPacket(client.enableCrypt(), 0));
|
client.close(new KeyPacket(client.enableCrypt(), 0));
|
||||||
}
|
}
|
||||||
|
@ -99,7 +99,7 @@ import com.l2jmobius.gameserver.util.GMAudit;
|
|||||||
public final class L2ItemInstance extends L2Object
|
public final class L2ItemInstance extends L2Object
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(L2ItemInstance.class.getName());
|
private static final Logger LOGGER = Logger.getLogger(L2ItemInstance.class.getName());
|
||||||
private static final Logger _logItems = Logger.getLogger("item");
|
private static final Logger LOG_ITEMS = Logger.getLogger("item");
|
||||||
|
|
||||||
/** ID of the owner */
|
/** ID of the owner */
|
||||||
private int _ownerId;
|
private int _ownerId;
|
||||||
@ -333,7 +333,7 @@ public final class L2ItemInstance extends L2Object
|
|||||||
{
|
{
|
||||||
if (getEnchantLevel() > 0)
|
if (getEnchantLevel() > 0)
|
||||||
{
|
{
|
||||||
_logItems.info("SETOWNER:" + String.valueOf(process) // in case of null
|
LOG_ITEMS.info("SETOWNER:" + String.valueOf(process) // in case of null
|
||||||
+ ", item " + getObjectId() //
|
+ ", item " + getObjectId() //
|
||||||
+ ":+" + getEnchantLevel() //
|
+ ":+" + getEnchantLevel() //
|
||||||
+ " " + getItem().getName() //
|
+ " " + getItem().getName() //
|
||||||
@ -343,7 +343,7 @@ public final class L2ItemInstance extends L2Object
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_logItems.info("SETOWNER:" + String.valueOf(process) // in case of null
|
LOG_ITEMS.info("SETOWNER:" + String.valueOf(process) // in case of null
|
||||||
+ ", item " + getObjectId() //
|
+ ", item " + getObjectId() //
|
||||||
+ ":" + getItem().getName() //
|
+ ":" + getItem().getName() //
|
||||||
+ "(" + _count + "), " //
|
+ "(" + _count + "), " //
|
||||||
@ -507,7 +507,7 @@ public final class L2ItemInstance extends L2Object
|
|||||||
{
|
{
|
||||||
if (getEnchantLevel() > 0)
|
if (getEnchantLevel() > 0)
|
||||||
{
|
{
|
||||||
_logItems.info("CHANGE:" + String.valueOf(process) // in case of null
|
LOG_ITEMS.info("CHANGE:" + String.valueOf(process) // in case of null
|
||||||
+ ", item " + getObjectId() //
|
+ ", item " + getObjectId() //
|
||||||
+ ":+" + getEnchantLevel() //
|
+ ":+" + getEnchantLevel() //
|
||||||
+ " " + getItem().getName() //
|
+ " " + getItem().getName() //
|
||||||
@ -518,7 +518,7 @@ public final class L2ItemInstance extends L2Object
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_logItems.info("CHANGE:" + String.valueOf(process) // in case of null
|
LOG_ITEMS.info("CHANGE:" + String.valueOf(process) // in case of null
|
||||||
+ ", item " + getObjectId() //
|
+ ", item " + getObjectId() //
|
||||||
+ ":" + getItem().getName() //
|
+ ":" + getItem().getName() //
|
||||||
+ "(" + _count + "), PrevCount(" //
|
+ "(" + _count + "), PrevCount(" //
|
||||||
|
@ -51,7 +51,7 @@ import com.l2jmobius.gameserver.util.Util;
|
|||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
public final class CharacterCreate implements IClientIncomingPacket
|
public final class CharacterCreate implements IClientIncomingPacket
|
||||||
{
|
{
|
||||||
protected static final Logger _logAccounting = Logger.getLogger("accounting");
|
protected static final Logger LOG_ACCOUNTING = Logger.getLogger("accounting");
|
||||||
|
|
||||||
// cSdddddddddddd
|
// cSdddddddddddd
|
||||||
private String _name;
|
private String _name;
|
||||||
@ -252,7 +252,7 @@ public final class CharacterCreate implements IClientIncomingPacket
|
|||||||
|
|
||||||
initNewChar(client, newChar);
|
initNewChar(client, newChar);
|
||||||
|
|
||||||
_logAccounting.info("Created new character, " + newChar + ", " + client);
|
LOG_ACCOUNTING.info("Created new character, " + newChar + ", " + client);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean isValidName(String text)
|
private static boolean isValidName(String text)
|
||||||
|
@ -46,7 +46,7 @@ import com.l2jmobius.gameserver.network.serverpackets.ServerClose;
|
|||||||
*/
|
*/
|
||||||
public class CharacterSelect implements IClientIncomingPacket
|
public class CharacterSelect implements IClientIncomingPacket
|
||||||
{
|
{
|
||||||
protected static final Logger _logAccounting = Logger.getLogger("accounting");
|
protected static final Logger LOG_ACCOUNTING = Logger.getLogger("accounting");
|
||||||
|
|
||||||
// cd
|
// cd
|
||||||
private int _charSlot;
|
private int _charSlot;
|
||||||
@ -175,7 +175,7 @@ public class CharacterSelect implements IClientIncomingPacket
|
|||||||
client.getActiveCharLock().unlock();
|
client.getActiveCharLock().unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
_logAccounting.info("Logged in, " + client);
|
LOG_ACCOUNTING.info("Logged in, " + client);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ import com.l2jmobius.gameserver.network.serverpackets.KeyPacket;
|
|||||||
*/
|
*/
|
||||||
public final class ProtocolVersion implements IClientIncomingPacket
|
public final class ProtocolVersion implements IClientIncomingPacket
|
||||||
{
|
{
|
||||||
private static final Logger _logAccounting = Logger.getLogger("accounting");
|
private static final Logger LOG_ACCOUNTING = Logger.getLogger("accounting");
|
||||||
|
|
||||||
private int _version;
|
private int _version;
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ public final class ProtocolVersion implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
else if (!Config.PROTOCOL_LIST.contains(_version))
|
else if (!Config.PROTOCOL_LIST.contains(_version))
|
||||||
{
|
{
|
||||||
_logAccounting.warning("Wrong protocol version " + _version + ", " + client);
|
LOG_ACCOUNTING.warning("Wrong protocol version " + _version + ", " + client);
|
||||||
client.setProtocolOk(false);
|
client.setProtocolOk(false);
|
||||||
client.close(new KeyPacket(client.enableCrypt(), 0));
|
client.close(new KeyPacket(client.enableCrypt(), 0));
|
||||||
}
|
}
|
||||||
|
@ -88,7 +88,7 @@ import com.l2jmobius.gameserver.util.GMAudit;
|
|||||||
public final class L2ItemInstance extends L2Object
|
public final class L2ItemInstance extends L2Object
|
||||||
{
|
{
|
||||||
private static final Logger _log = Logger.getLogger(L2ItemInstance.class.getName());
|
private static final Logger _log = Logger.getLogger(L2ItemInstance.class.getName());
|
||||||
private static final Logger _logItems = Logger.getLogger("item");
|
private static final Logger LOG_ITEMS = Logger.getLogger("item");
|
||||||
|
|
||||||
/** ID of the owner */
|
/** ID of the owner */
|
||||||
private int _ownerId;
|
private int _ownerId;
|
||||||
@ -323,7 +323,7 @@ public final class L2ItemInstance extends L2Object
|
|||||||
creator,
|
creator,
|
||||||
reference
|
reference
|
||||||
});
|
});
|
||||||
_logItems.log(record);
|
LOG_ITEMS.log(record);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((creator != null) && creator.isGM())
|
if ((creator != null) && creator.isGM())
|
||||||
@ -485,7 +485,7 @@ public final class L2ItemInstance extends L2Object
|
|||||||
creator,
|
creator,
|
||||||
reference
|
reference
|
||||||
});
|
});
|
||||||
_logItems.log(record);
|
LOG_ITEMS.log(record);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((creator != null) && creator.isGM())
|
if ((creator != null) && creator.isGM())
|
||||||
|
@ -99,7 +99,7 @@ import com.l2jmobius.gameserver.util.GMAudit;
|
|||||||
public final class L2ItemInstance extends L2Object
|
public final class L2ItemInstance extends L2Object
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(L2ItemInstance.class.getName());
|
private static final Logger LOGGER = Logger.getLogger(L2ItemInstance.class.getName());
|
||||||
private static final Logger _logItems = Logger.getLogger("item");
|
private static final Logger LOG_ITEMS = Logger.getLogger("item");
|
||||||
|
|
||||||
/** ID of the owner */
|
/** ID of the owner */
|
||||||
private int _ownerId;
|
private int _ownerId;
|
||||||
@ -333,7 +333,7 @@ public final class L2ItemInstance extends L2Object
|
|||||||
{
|
{
|
||||||
if (getEnchantLevel() > 0)
|
if (getEnchantLevel() > 0)
|
||||||
{
|
{
|
||||||
_logItems.info("SETOWNER:" + String.valueOf(process) // in case of null
|
LOG_ITEMS.info("SETOWNER:" + String.valueOf(process) // in case of null
|
||||||
+ ", item " + getObjectId() //
|
+ ", item " + getObjectId() //
|
||||||
+ ":+" + getEnchantLevel() //
|
+ ":+" + getEnchantLevel() //
|
||||||
+ " " + getItem().getName() //
|
+ " " + getItem().getName() //
|
||||||
@ -343,7 +343,7 @@ public final class L2ItemInstance extends L2Object
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_logItems.info("SETOWNER:" + String.valueOf(process) // in case of null
|
LOG_ITEMS.info("SETOWNER:" + String.valueOf(process) // in case of null
|
||||||
+ ", item " + getObjectId() //
|
+ ", item " + getObjectId() //
|
||||||
+ ":" + getItem().getName() //
|
+ ":" + getItem().getName() //
|
||||||
+ "(" + _count + "), " //
|
+ "(" + _count + "), " //
|
||||||
@ -507,7 +507,7 @@ public final class L2ItemInstance extends L2Object
|
|||||||
{
|
{
|
||||||
if (getEnchantLevel() > 0)
|
if (getEnchantLevel() > 0)
|
||||||
{
|
{
|
||||||
_logItems.info("CHANGE:" + String.valueOf(process) // in case of null
|
LOG_ITEMS.info("CHANGE:" + String.valueOf(process) // in case of null
|
||||||
+ ", item " + getObjectId() //
|
+ ", item " + getObjectId() //
|
||||||
+ ":+" + getEnchantLevel() //
|
+ ":+" + getEnchantLevel() //
|
||||||
+ " " + getItem().getName() //
|
+ " " + getItem().getName() //
|
||||||
@ -518,7 +518,7 @@ public final class L2ItemInstance extends L2Object
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_logItems.info("CHANGE:" + String.valueOf(process) // in case of null
|
LOG_ITEMS.info("CHANGE:" + String.valueOf(process) // in case of null
|
||||||
+ ", item " + getObjectId() //
|
+ ", item " + getObjectId() //
|
||||||
+ ":" + getItem().getName() //
|
+ ":" + getItem().getName() //
|
||||||
+ "(" + _count + "), PrevCount(" //
|
+ "(" + _count + "), PrevCount(" //
|
||||||
|
@ -51,7 +51,7 @@ import com.l2jmobius.gameserver.util.Util;
|
|||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
public final class CharacterCreate implements IClientIncomingPacket
|
public final class CharacterCreate implements IClientIncomingPacket
|
||||||
{
|
{
|
||||||
protected static final Logger _logAccounting = Logger.getLogger("accounting");
|
protected static final Logger LOG_ACCOUNTING = Logger.getLogger("accounting");
|
||||||
|
|
||||||
// cSdddddddddddd
|
// cSdddddddddddd
|
||||||
private String _name;
|
private String _name;
|
||||||
@ -252,7 +252,7 @@ public final class CharacterCreate implements IClientIncomingPacket
|
|||||||
|
|
||||||
initNewChar(client, newChar);
|
initNewChar(client, newChar);
|
||||||
|
|
||||||
_logAccounting.info("Created new character, " + newChar + ", " + client);
|
LOG_ACCOUNTING.info("Created new character, " + newChar + ", " + client);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean isValidName(String text)
|
private static boolean isValidName(String text)
|
||||||
|
@ -46,7 +46,7 @@ import com.l2jmobius.gameserver.network.serverpackets.ServerClose;
|
|||||||
*/
|
*/
|
||||||
public class CharacterSelect implements IClientIncomingPacket
|
public class CharacterSelect implements IClientIncomingPacket
|
||||||
{
|
{
|
||||||
protected static final Logger _logAccounting = Logger.getLogger("accounting");
|
protected static final Logger LOG_ACCOUNTING = Logger.getLogger("accounting");
|
||||||
|
|
||||||
// cd
|
// cd
|
||||||
private int _charSlot;
|
private int _charSlot;
|
||||||
@ -175,7 +175,7 @@ public class CharacterSelect implements IClientIncomingPacket
|
|||||||
client.getActiveCharLock().unlock();
|
client.getActiveCharLock().unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
_logAccounting.info("Logged in, " + client);
|
LOG_ACCOUNTING.info("Logged in, " + client);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ import com.l2jmobius.gameserver.network.serverpackets.KeyPacket;
|
|||||||
*/
|
*/
|
||||||
public final class ProtocolVersion implements IClientIncomingPacket
|
public final class ProtocolVersion implements IClientIncomingPacket
|
||||||
{
|
{
|
||||||
private static final Logger _logAccounting = Logger.getLogger("accounting");
|
private static final Logger LOG_ACCOUNTING = Logger.getLogger("accounting");
|
||||||
|
|
||||||
private int _version;
|
private int _version;
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ public final class ProtocolVersion implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
else if (!Config.PROTOCOL_LIST.contains(_version))
|
else if (!Config.PROTOCOL_LIST.contains(_version))
|
||||||
{
|
{
|
||||||
_logAccounting.warning("Wrong protocol version " + _version + ", " + client);
|
LOG_ACCOUNTING.warning("Wrong protocol version " + _version + ", " + client);
|
||||||
client.setProtocolOk(false);
|
client.setProtocolOk(false);
|
||||||
client.close(new KeyPacket(client.enableCrypt(), 0));
|
client.close(new KeyPacket(client.enableCrypt(), 0));
|
||||||
}
|
}
|
||||||
|
@ -99,7 +99,7 @@ import com.l2jmobius.gameserver.util.GMAudit;
|
|||||||
public final class L2ItemInstance extends L2Object
|
public final class L2ItemInstance extends L2Object
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(L2ItemInstance.class.getName());
|
private static final Logger LOGGER = Logger.getLogger(L2ItemInstance.class.getName());
|
||||||
private static final Logger _logItems = Logger.getLogger("item");
|
private static final Logger LOG_ITEMS = Logger.getLogger("item");
|
||||||
|
|
||||||
/** ID of the owner */
|
/** ID of the owner */
|
||||||
private int _ownerId;
|
private int _ownerId;
|
||||||
@ -333,7 +333,7 @@ public final class L2ItemInstance extends L2Object
|
|||||||
{
|
{
|
||||||
if (getEnchantLevel() > 0)
|
if (getEnchantLevel() > 0)
|
||||||
{
|
{
|
||||||
_logItems.info("SETOWNER:" + String.valueOf(process) // in case of null
|
LOG_ITEMS.info("SETOWNER:" + String.valueOf(process) // in case of null
|
||||||
+ ", item " + getObjectId() //
|
+ ", item " + getObjectId() //
|
||||||
+ ":+" + getEnchantLevel() //
|
+ ":+" + getEnchantLevel() //
|
||||||
+ " " + getItem().getName() //
|
+ " " + getItem().getName() //
|
||||||
@ -343,7 +343,7 @@ public final class L2ItemInstance extends L2Object
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_logItems.info("SETOWNER:" + String.valueOf(process) // in case of null
|
LOG_ITEMS.info("SETOWNER:" + String.valueOf(process) // in case of null
|
||||||
+ ", item " + getObjectId() //
|
+ ", item " + getObjectId() //
|
||||||
+ ":" + getItem().getName() //
|
+ ":" + getItem().getName() //
|
||||||
+ "(" + _count + "), " //
|
+ "(" + _count + "), " //
|
||||||
@ -507,7 +507,7 @@ public final class L2ItemInstance extends L2Object
|
|||||||
{
|
{
|
||||||
if (getEnchantLevel() > 0)
|
if (getEnchantLevel() > 0)
|
||||||
{
|
{
|
||||||
_logItems.info("CHANGE:" + String.valueOf(process) // in case of null
|
LOG_ITEMS.info("CHANGE:" + String.valueOf(process) // in case of null
|
||||||
+ ", item " + getObjectId() //
|
+ ", item " + getObjectId() //
|
||||||
+ ":+" + getEnchantLevel() //
|
+ ":+" + getEnchantLevel() //
|
||||||
+ " " + getItem().getName() //
|
+ " " + getItem().getName() //
|
||||||
@ -518,7 +518,7 @@ public final class L2ItemInstance extends L2Object
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_logItems.info("CHANGE:" + String.valueOf(process) // in case of null
|
LOG_ITEMS.info("CHANGE:" + String.valueOf(process) // in case of null
|
||||||
+ ", item " + getObjectId() //
|
+ ", item " + getObjectId() //
|
||||||
+ ":" + getItem().getName() //
|
+ ":" + getItem().getName() //
|
||||||
+ "(" + _count + "), PrevCount(" //
|
+ "(" + _count + "), PrevCount(" //
|
||||||
|
@ -51,7 +51,7 @@ import com.l2jmobius.gameserver.util.Util;
|
|||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
public final class CharacterCreate implements IClientIncomingPacket
|
public final class CharacterCreate implements IClientIncomingPacket
|
||||||
{
|
{
|
||||||
protected static final Logger _logAccounting = Logger.getLogger("accounting");
|
protected static final Logger LOG_ACCOUNTING = Logger.getLogger("accounting");
|
||||||
|
|
||||||
// cSdddddddddddd
|
// cSdddddddddddd
|
||||||
private String _name;
|
private String _name;
|
||||||
@ -252,7 +252,7 @@ public final class CharacterCreate implements IClientIncomingPacket
|
|||||||
|
|
||||||
initNewChar(client, newChar);
|
initNewChar(client, newChar);
|
||||||
|
|
||||||
_logAccounting.info("Created new character, " + newChar + ", " + client);
|
LOG_ACCOUNTING.info("Created new character, " + newChar + ", " + client);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean isValidName(String text)
|
private static boolean isValidName(String text)
|
||||||
|
@ -46,7 +46,7 @@ import com.l2jmobius.gameserver.network.serverpackets.ServerClose;
|
|||||||
*/
|
*/
|
||||||
public class CharacterSelect implements IClientIncomingPacket
|
public class CharacterSelect implements IClientIncomingPacket
|
||||||
{
|
{
|
||||||
protected static final Logger _logAccounting = Logger.getLogger("accounting");
|
protected static final Logger LOG_ACCOUNTING = Logger.getLogger("accounting");
|
||||||
|
|
||||||
// cd
|
// cd
|
||||||
private int _charSlot;
|
private int _charSlot;
|
||||||
@ -175,7 +175,7 @@ public class CharacterSelect implements IClientIncomingPacket
|
|||||||
client.getActiveCharLock().unlock();
|
client.getActiveCharLock().unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
_logAccounting.info("Logged in, " + client);
|
LOG_ACCOUNTING.info("Logged in, " + client);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ import com.l2jmobius.gameserver.network.serverpackets.KeyPacket;
|
|||||||
*/
|
*/
|
||||||
public final class ProtocolVersion implements IClientIncomingPacket
|
public final class ProtocolVersion implements IClientIncomingPacket
|
||||||
{
|
{
|
||||||
private static final Logger _logAccounting = Logger.getLogger("accounting");
|
private static final Logger LOG_ACCOUNTING = Logger.getLogger("accounting");
|
||||||
|
|
||||||
private int _version;
|
private int _version;
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ public final class ProtocolVersion implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
else if (!Config.PROTOCOL_LIST.contains(_version))
|
else if (!Config.PROTOCOL_LIST.contains(_version))
|
||||||
{
|
{
|
||||||
_logAccounting.warning("Wrong protocol version " + _version + ", " + client);
|
LOG_ACCOUNTING.warning("Wrong protocol version " + _version + ", " + client);
|
||||||
client.setProtocolOk(false);
|
client.setProtocolOk(false);
|
||||||
client.close(new KeyPacket(client.enableCrypt(), 0));
|
client.close(new KeyPacket(client.enableCrypt(), 0));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user