Advertisement
Nik

Untitled

Nik
Apr 6th, 2012
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. Index: java/com/l2jserver/loginserver/L2LoginServer.java
  3. ===================================================================
  4. --- java/com/l2jserver/loginserver/L2LoginServer.java   (revision 316)
  5. +++ java/com/l2jserver/loginserver/L2LoginServer.java   (working copy)
  6. @@ -151,7 +151,8 @@
  7.        
  8.         try
  9.         {
  10. -           AccountLogManager.getInstance();
  11. +           if (Config.ENABLE_ACCOUNT_LOG)
  12. +               AccountLogManager.getInstance();
  13.         }
  14.         catch (Exception e)
  15.         {
  16. Index: java/com/l2jserver/loginserver/network/loginserverpackets/SendAccountLog.java
  17. ===================================================================
  18. --- java/com/l2jserver/loginserver/network/loginserverpackets/SendAccountLog.java   (revision 315)
  19. +++ java/com/l2jserver/loginserver/network/loginserverpackets/SendAccountLog.java   (working copy)
  20. @@ -22,6 +22,7 @@
  21.  import java.util.logging.Level;
  22.  import java.util.logging.Logger;
  23.  
  24. +import com.l2jserver.Config;
  25.  import com.l2jserver.L2DatabaseFactory;
  26.  import com.l2jserver.loginserver.AccountLogManager.AccountLog;
  27.  import com.l2jserver.util.network.BaseSendablePacket;
  28. @@ -37,6 +38,9 @@
  29.    
  30.     public SendAccountLog(String accountName, int charObjId)
  31.     {
  32. +       if (!Config.ENABLE_ACCOUNT_LOG)
  33. +           return;
  34. +      
  35.         gatherAccountLog(accountName);
  36.         if (list == null)
  37.             return;
  38. Index: java/com/l2jserver/Config.java
  39. ===================================================================
  40. --- java/com/l2jserver/Config.java  (revision 315)
  41. +++ java/com/l2jserver/Config.java  (working copy)
  42. @@ -1167,6 +1167,8 @@
  43.     public static int FAST_CONNECTION_TIME;
  44.     public static int MAX_CONNECTION_PER_IP;
  45.    
  46. +   public static boolean ENABLE_ACCOUNT_LOG;
  47. +  
  48.     // GrandBoss Settings
  49.    
  50.     public static int Antharas_Wait_Time;
  51. @@ -3597,6 +3599,8 @@
  52.                     NORMAL_CONNECTION_TIME = Integer.parseInt(serverSettings.getProperty("NormalConnectionTime","700"));
  53.                     FAST_CONNECTION_TIME = Integer.parseInt(serverSettings.getProperty("FastConnectionTime","350"));
  54.                     MAX_CONNECTION_PER_IP = Integer.parseInt(serverSettings.getProperty("MaxConnectionPerIP","50"));
  55. +                  
  56. +                   ENABLE_ACCOUNT_LOG = Boolean.parseBoolean(serverSettings.getProperty("EnableAccountLog","False"));
  57.                 }
  58.                 catch (Exception e)
  59.                 {
  60. Index: java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java
  61. ===================================================================
  62. --- java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java    (revision 315)
  63. +++ java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java    (working copy)
  64. @@ -16656,7 +16656,7 @@
  65.      private String _country = "Unknown";
  66.    
  67.     public void setCountry(String accountName)
  68. -   {
  69. +   {/*
  70.         Connection con = null;
  71.         PreparedStatement statement = null;
  72.         ResultSet rs = null;
  73. @@ -16677,7 +16677,7 @@
  74.         finally
  75.         {
  76.             L2DatabaseFactory.close(con);
  77. -       }
  78. +       }*/
  79.     }
  80.    
  81.     public String getCountry()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement