Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: java/com/l2jserver/loginserver/L2LoginServer.java
- ===================================================================
- --- java/com/l2jserver/loginserver/L2LoginServer.java (revision 316)
- +++ java/com/l2jserver/loginserver/L2LoginServer.java (working copy)
- @@ -151,7 +151,8 @@
- try
- {
- - AccountLogManager.getInstance();
- + if (Config.ENABLE_ACCOUNT_LOG)
- + AccountLogManager.getInstance();
- }
- catch (Exception e)
- {
- Index: java/com/l2jserver/loginserver/network/loginserverpackets/SendAccountLog.java
- ===================================================================
- --- java/com/l2jserver/loginserver/network/loginserverpackets/SendAccountLog.java (revision 315)
- +++ java/com/l2jserver/loginserver/network/loginserverpackets/SendAccountLog.java (working copy)
- @@ -22,6 +22,7 @@
- import java.util.logging.Level;
- import java.util.logging.Logger;
- +import com.l2jserver.Config;
- import com.l2jserver.L2DatabaseFactory;
- import com.l2jserver.loginserver.AccountLogManager.AccountLog;
- import com.l2jserver.util.network.BaseSendablePacket;
- @@ -37,6 +38,9 @@
- public SendAccountLog(String accountName, int charObjId)
- {
- + if (!Config.ENABLE_ACCOUNT_LOG)
- + return;
- +
- gatherAccountLog(accountName);
- if (list == null)
- return;
- Index: java/com/l2jserver/Config.java
- ===================================================================
- --- java/com/l2jserver/Config.java (revision 315)
- +++ java/com/l2jserver/Config.java (working copy)
- @@ -1167,6 +1167,8 @@
- public static int FAST_CONNECTION_TIME;
- public static int MAX_CONNECTION_PER_IP;
- + public static boolean ENABLE_ACCOUNT_LOG;
- +
- // GrandBoss Settings
- public static int Antharas_Wait_Time;
- @@ -3597,6 +3599,8 @@
- NORMAL_CONNECTION_TIME = Integer.parseInt(serverSettings.getProperty("NormalConnectionTime","700"));
- FAST_CONNECTION_TIME = Integer.parseInt(serverSettings.getProperty("FastConnectionTime","350"));
- MAX_CONNECTION_PER_IP = Integer.parseInt(serverSettings.getProperty("MaxConnectionPerIP","50"));
- +
- + ENABLE_ACCOUNT_LOG = Boolean.parseBoolean(serverSettings.getProperty("EnableAccountLog","False"));
- }
- catch (Exception e)
- {
- Index: java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java
- ===================================================================
- --- java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (revision 315)
- +++ java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (working copy)
- @@ -16656,7 +16656,7 @@
- private String _country = "Unknown";
- public void setCountry(String accountName)
- - {
- + {/*
- Connection con = null;
- PreparedStatement statement = null;
- ResultSet rs = null;
- @@ -16677,7 +16677,7 @@
- finally
- {
- L2DatabaseFactory.close(con);
- - }
- + }*/
- }
- public String getCountry()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement