Removed main server debug config.

This commit is contained in:
MobiusDev
2017-12-09 21:24:30 +00:00
parent 5b8e5b462d
commit e7ab6986cf
393 changed files with 77 additions and 3640 deletions

View File

@@ -688,13 +688,6 @@ AllowReportsFromSameClanMembers = False
# Do not touch these if you do not know what you are doing.
# These settings are for debugging servers ONLY. They are not meant for LIVE servers.
# Default: False
Debug = False
# Instances debugging
# Default: False
InstanceDebug = False
# Html action cache debugging
# Default: False
HtmlActionCacheDebug = False

View File

@@ -20,7 +20,6 @@ import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import com.l2jmobius.Config;
import com.l2jmobius.commons.database.DatabaseFactory;
import com.l2jmobius.gameserver.data.xml.impl.AdminData;
import com.l2jmobius.gameserver.handler.IAdminCommandHandler;
@@ -93,10 +92,6 @@ public final class AdminChangeAccessLevel implements IAdminCommandHandler
catch (SQLException se)
{
activeChar.sendMessage("SQLException while changing character's access level");
if (Config.DEBUG)
{
se.printStackTrace();
}
}
}
}

View File

@@ -1217,10 +1217,6 @@ public class AdminEditChar implements IAdminCommandHandler
sm.addInt(newReputation);
player.sendPacket(sm);
activeChar.sendMessage("Successfully Changed karma for " + player.getName() + " from (" + oldReputation + ") to (" + newReputation + ").");
if (Config.DEBUG)
{
_log.finer("[SET KARMA] [GM]" + activeChar.getName() + " Changed karma for " + player.getName() + " from (" + oldReputation + ") to (" + newReputation + ").");
}
}
private void editCharacter(L2PcInstance activeChar, String targetName)

View File

@@ -19,7 +19,6 @@ package handlers.admincommandhandlers;
import java.util.Arrays;
import java.util.StringTokenizer;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.data.xml.impl.SkillData;
import com.l2jmobius.gameserver.enums.Movie;
import com.l2jmobius.gameserver.enums.Team;
@@ -513,10 +512,6 @@ public class AdminEffects implements IAdminCommandHandler
}
catch (Exception e)
{
if (Config.DEBUG)
{
e.printStackTrace();
}
}
}
else if (command.startsWith("admin_ave_abnormal"))

View File

@@ -17,9 +17,7 @@
package handlers.admincommandhandlers;
import java.util.StringTokenizer;
import java.util.logging.Logger;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.data.xml.impl.ClassListData;
import com.l2jmobius.gameserver.handler.IAdminCommandHandler;
import com.l2jmobius.gameserver.model.L2Object;
@@ -36,8 +34,6 @@ import com.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
*/
public class AdminExpSp implements IAdminCommandHandler
{
private static Logger _log = Logger.getLogger(AdminExpSp.class.getName());
private static final String[] ADMIN_COMMANDS =
{
"admin_add_exp_sp_to_character",
@@ -150,10 +146,6 @@ public class AdminExpSp implements IAdminCommandHandler
player.addExpAndSp(expval, spval);
// Admin information
activeChar.sendMessage("Added " + expval + " xp and " + spval + " sp to " + player.getName() + ".");
if (Config.DEBUG)
{
_log.finer("GM: " + activeChar.getName() + "(" + activeChar.getObjectId() + ") added " + expval + " xp and " + spval + " sp to " + player.getObjectId() + ".");
}
}
return true;
}
@@ -197,10 +189,6 @@ public class AdminExpSp implements IAdminCommandHandler
player.removeExpAndSp(expval, spval);
// Admin information
activeChar.sendMessage("Removed " + expval + " xp and " + spval + " sp from " + player.getName() + ".");
if (Config.DEBUG)
{
_log.finer("GM: " + activeChar.getName() + "(" + activeChar.getObjectId() + ") removed " + expval + " xp and " + spval + " sp from " + player.getObjectId() + ".");
}
}
return true;
}

View File

@@ -122,10 +122,6 @@ public class AdminHeal implements IAdminCommandHandler
{
target.setCurrentCp(target.getMaxCp());
}
if (Config.DEBUG)
{
_log.finer("GM: " + activeChar.getName() + "(" + activeChar.getObjectId() + ") healed character " + target.getName());
}
}
else
{

View File

@@ -16,9 +16,6 @@
*/
package handlers.admincommandhandlers;
import java.util.logging.Logger;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.handler.IAdminCommandHandler;
import com.l2jmobius.gameserver.model.L2Object;
import com.l2jmobius.gameserver.model.actor.L2Character;
@@ -30,7 +27,6 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
*/
public class AdminInvul implements IAdminCommandHandler
{
private static Logger _log = Logger.getLogger(AdminInvul.class.getName());
private static final String[] ADMIN_COMMANDS =
{
"admin_invul",
@@ -86,19 +82,11 @@ public class AdminInvul implements IAdminCommandHandler
{
activeChar.setIsInvul(false);
text = activeChar.getName() + " is now mortal.";
if (Config.DEBUG)
{
_log.finer("GM: Gm removed invul mode from character " + activeChar.getName() + "(" + activeChar.getObjectId() + ")");
}
}
else
{
activeChar.setIsInvul(true);
text = activeChar.getName() + " is now invulnerable.";
if (Config.DEBUG)
{
_log.finer("GM: Gm activated invul mode for character " + activeChar.getName() + "(" + activeChar.getObjectId() + ")");
}
}
activeChar.sendMessage(text);
}
@@ -110,19 +98,11 @@ public class AdminInvul implements IAdminCommandHandler
{
activeChar.setUndying(false);
text = activeChar.getName() + " is now mortal.";
if (Config.DEBUG)
{
_log.finer("GM: Gm removed undying mode from character " + activeChar.getName() + "(" + activeChar.getObjectId() + ")");
}
}
else
{
activeChar.setUndying(true);
text = activeChar.getName() + " is now undying.";
if (Config.DEBUG)
{
_log.finer("GM: Gm activated undying mode for character " + activeChar.getName() + "(" + activeChar.getObjectId() + ")");
}
}
activeChar.sendMessage(text);
}

View File

@@ -17,7 +17,6 @@
package handlers.admincommandhandlers;
import java.util.StringTokenizer;
import java.util.logging.Logger;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.handler.IAdminCommandHandler;
@@ -36,7 +35,6 @@ import com.l2jmobius.gameserver.network.SystemMessageId;
*/
public class AdminKill implements IAdminCommandHandler
{
private static Logger _log = Logger.getLogger(AdminKill.class.getName());
private static final String[] ADMIN_COMMANDS =
{
"admin_kill",
@@ -154,10 +152,6 @@ public class AdminKill implements IAdminCommandHandler
target.setIsInvul(true);
}
}
if (Config.DEBUG)
{
_log.finer("GM: " + activeChar.getName() + "(" + activeChar.getObjectId() + ") killed character " + target.getObjectId());
}
}
@Override

View File

@@ -16,9 +16,6 @@
*/
package handlers.admincommandhandlers;
import java.util.logging.Logger;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.handler.IAdminCommandHandler;
import com.l2jmobius.gameserver.model.L2Object;
import com.l2jmobius.gameserver.model.L2World;
@@ -34,7 +31,6 @@ import com.l2jmobius.gameserver.taskmanager.DecayTaskManager;
*/
public class AdminRes implements IAdminCommandHandler
{
private static Logger _log = Logger.getLogger(AdminRes.class.getName());
private static final String[] ADMIN_COMMANDS =
{
"admin_res",
@@ -123,11 +119,6 @@ public class AdminRes implements IAdminCommandHandler
}
doResurrect((L2Character) obj);
if (Config.DEBUG)
{
_log.finer("GM: " + activeChar.getName() + "(" + activeChar.getObjectId() + ") resurrected character " + obj.getObjectId());
}
}
private void handleNonPlayerRes(L2PcInstance activeChar)

View File

@@ -21,7 +21,6 @@ import java.util.StringTokenizer;
import java.util.logging.Level;
import java.util.logging.Logger;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.data.xml.impl.ClassListData;
import com.l2jmobius.gameserver.data.xml.impl.SkillData;
import com.l2jmobius.gameserver.data.xml.impl.SkillTreesData;
@@ -538,10 +537,6 @@ public class AdminSkill implements IAdminCommandHandler
player.sendSkillList();
// Admin info.
activeChar.sendMessage("You gave the skill " + name + " to " + player.getName() + ".");
if (Config.DEBUG)
{
_log.finer("[GM]" + activeChar.getName() + " gave skill " + name + " to " + player.getName() + ".");
}
activeChar.sendSkillList();
}
else
@@ -573,10 +568,6 @@ public class AdminSkill implements IAdminCommandHandler
player.removeSkill(skill);
// Admin information
activeChar.sendMessage("You removed the skill " + skillname + " from " + player.getName() + ".");
if (Config.DEBUG)
{
_log.finer("[GM]" + activeChar.getName() + " removed skill " + skillname + " from " + player.getName() + ".");
}
activeChar.sendSkillList();
}
else

View File

@@ -23,7 +23,6 @@ import java.util.NoSuchElementException;
import java.util.StringTokenizer;
import java.util.logging.Logger;
import com.l2jmobius.Config;
import com.l2jmobius.commons.database.DatabaseFactory;
import com.l2jmobius.gameserver.ai.CtrlIntention;
import com.l2jmobius.gameserver.data.xml.impl.NpcData;
@@ -135,10 +134,6 @@ public class AdminTeleport implements IAdminCommandHandler
}
catch (Exception e)
{
if (Config.DEBUG)
{
_log.info("admin_walk: " + e);
}
}
}
else if (command.startsWith("admin_move_to"))
@@ -564,12 +559,6 @@ public class AdminTeleport implements IAdminCommandHandler
spawn.init();
activeChar.sendMessage("Created " + template1.getName() + " on " + target.getObjectId() + ".");
if (Config.DEBUG)
{
_log.finer("Spawn at X=" + spawn.getX() + " Y=" + spawn.getY() + " Z=" + spawn.getZ());
_log.warning("GM: " + activeChar.getName() + "(" + activeChar.getObjectId() + ") moved NPC " + target.getObjectId());
}
}
catch (Exception e)
{

View File

@@ -18,7 +18,6 @@ package handlers.bypasshandlers;
import java.util.logging.Level;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.handler.IBypassHandler;
import com.l2jmobius.gameserver.model.actor.L2Character;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -85,11 +84,6 @@ public class PrivateWarehouse implements IBypassHandler
}
player.sendPacket(new WareHouseWithdrawalList(player, WareHouseWithdrawalList.PRIVATE));
if (Config.DEBUG)
{
_log.finer("Source: L2WarehouseInstance.java; Player: " + player.getName() + "; Command: showRetrieveWindow; Message: Showing stored items.");
}
}
@Override

View File

@@ -17,7 +17,6 @@
package handlers.chathandlers;
import java.util.StringTokenizer;
import java.util.logging.Logger;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.ChatType;
@@ -38,8 +37,6 @@ import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
*/
public final class ChatGeneral implements IChatHandler
{
private static Logger _log = Logger.getLogger(ChatGeneral.class.getName());
private static final ChatType[] CHAT_TYPES =
{
ChatType.GENERAL,
@@ -63,10 +60,6 @@ public final class ChatGeneral implements IChatHandler
else
{
command = text.substring(1);
if (Config.DEBUG)
{
_log.info("Command: " + command);
}
}
vch = VoicedCommandHandler.getInstance().getHandler(command);
if (vch != null)
@@ -76,10 +69,6 @@ public final class ChatGeneral implements IChatHandler
}
else
{
if (Config.DEBUG)
{
_log.warning("No handler registered for bypass '" + command + "'");
}
vcd_used = false;
}
}

View File

@@ -125,11 +125,3 @@ LoginRestartSchedule = False
# Time in hours.
# Default: 24
LoginRestartTime = 24
# ---------------------------------------------------------------------------
# Developer Settings
# ---------------------------------------------------------------------------
# Default: False
Debug = False