SHOW:
|
|
- or go back to the newest paste.
| 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 | - | Index: launcher/L2World LoginServer HighFive.launch |
| 59 | + | |
| 60 | Index: java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java | |
| 61 | - | --- launcher/L2World LoginServer HighFive.launch (revision 315) |
| 61 | + | |
| 62 | - | +++ launcher/L2World LoginServer HighFive.launch (working copy) |
| 62 | + | --- java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (revision 315) |
| 63 | - | @@ -8,7 +8,7 @@ |
| 63 | + | +++ java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (working copy) |
| 64 | - | </listAttribute> |
| 64 | + | @@ -16656,7 +16656,7 @@ |
| 65 | - | <booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/> |
| 65 | + | private String _country = "Unknown"; |
| 66 | - | <stringAttribute key="org.eclipse.debug.core.source_locator_id" value="org.eclipse.jdt.launching.sourceLocator.JavaSourceLookupDirector"/> |
| 66 | + | |
| 67 | - | -<stringAttribute key="org.eclipse.debug.core.source_locator_memento" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <sourceLookupDirector> <sourceContainers duplicates="false"> <container memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;javaProject name=&quot;High_Five_CORE_CT2.5&quot;/&gt;&#13;&#10;" typeId="org.eclipse.jdt.launching.sourceContainer.javaProject"/> <container memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;javaProject name=&quot;High_Five_DATAPACK&quot;/&gt;&#13;&#10;" typeId="org.eclipse.jdt.launching.sourceContainer.javaProject"/> <container memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;javaProject name=&quot;MMOCore&quot;/&gt;&#13;&#10;" typeId="org.eclipse.jdt.launching.sourceContainer.javaProject"/> </sourceContainers> </sourceLookupDirector> "/> |
| 67 | + | public void setCountry(String accountName) |
| 68 | - | +<stringAttribute key="org.eclipse.debug.core.source_locator_memento" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <sourceLookupDirector> <sourceContainers duplicates="false"> <container memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;javaProject name=&quot;High_Five_CORE&quot;/&gt;&#13;&#10;" typeId="org.eclipse.jdt.launching.sourceContainer.javaProject"/> <container memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;javaProject name=&quot;High_Five_CORE_CT2.5&quot;/&gt;&#13;&#10;" typeId="org.eclipse.jdt.launching.sourceContainer.javaProject"/> <container memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;javaProject name=&quot;High_Five_DATAPACK&quot;/&gt;&#13;&#10;" typeId="org.eclipse.jdt.launching.sourceContainer.javaProject"/> <container memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;javaProject name=&quot;MMOCore&quot;/&gt;&#13;&#10;" typeId="org.eclipse.jdt.launching.sourceContainer.javaProject"/> </sourceContainers> </sourceLookupDirector> "/> |
| 68 | + | - {
|
| 69 | - | <listAttribute key="org.eclipse.debug.ui.favoriteGroups"> |
| 69 | + | + {/*
|
| 70 | - | <listEntry value="org.eclipse.debug.ui.launchGroup.debug"/> |
| 70 | + | Connection con = null; |
| 71 | - | <listEntry value="org.eclipse.debug.ui.launchGroup.run"/> |
| 71 | + | PreparedStatement statement = null; |
| 72 | - | @@ -44,4 +44,4 @@ |
| 72 | + | ResultSet rs = null; |
| 73 | - | <booleanAttribute key="yk-launch-ui" value="true"/> |
| 73 | + | @@ -16677,7 +16677,7 @@ |
| 74 | - | <intAttribute key="yk-mem-threshold" value="0"/> |
| 74 | + | finally |
| 75 | - | <booleanAttribute key="yk-startup-with-object-allocations" value="false"/> |
| 75 | + | |
| 76 | - | -</launchConfiguration> |
| 76 | + | L2DatabaseFactory.close(con); |
| 77 | - | \ No newline at end of file |
| 77 | + | - } |
| 78 | - | +</launchConfiguration> |
| 78 | + | + }*/ |
| 79 | } | |
| 80 | ||
| 81 | public String getCountry() |