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

@@ -869,13 +869,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

@@ -1072,19 +1072,11 @@ public class AdminEditChar implements IAdminCommandHandler
player.sendPacket(sm);
// Admin information
activeChar.sendMessage("Successfully Changed karma for " + player.getName() + " from (" + oldKarma + ") to (" + newKarma + ").");
if (Config.DEBUG)
{
_log.fine("[SET KARMA] [GM]" + activeChar.getName() + " Changed karma for " + player.getName() + " from (" + oldKarma + ") to (" + newKarma + ").");
}
}
else
{
// tell admin of mistake
activeChar.sendMessage("You must enter a value for karma greater than or equal to 0.");
if (Config.DEBUG)
{
_log.fine("[SET KARMA] ERROR: [GM]" + activeChar.getName() + " entered an incorrect value for new karma: " + newKarma + " for " + player.getName() + ".");
}
}
}

View File

@@ -19,7 +19,6 @@ package handlers.admincommandhandlers;
import java.util.Collection;
import java.util.StringTokenizer;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.datatables.SkillData;
import com.l2jmobius.gameserver.enums.Team;
import com.l2jmobius.gameserver.handler.IAdminCommandHandler;
@@ -530,10 +529,6 @@ public class AdminEffects implements IAdminCommandHandler
}
catch (Exception e)
{
if (Config.DEBUG)
{
e.printStackTrace();
}
}
}
else if (command.startsWith("admin_ave_abnormal") || command.startsWith("admin_ave_special") || command.startsWith("admin_ave_event"))

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.fine("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.fine("GM: " + activeChar.getName() + "(" + activeChar.getObjectId() + ") removed " + expval + " xp and " + spval + " sp from " + player.getObjectId() + ".");
}
}
return true;
}

View File

@@ -127,10 +127,6 @@ public class AdminHeal implements IAdminCommandHandler
{
target.setCurrentCp(target.getMaxCp());
}
if (Config.DEBUG)
{
_log.fine("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.instance.L2PcInstance;
@@ -29,7 +26,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",
@@ -69,19 +65,11 @@ public class AdminInvul implements IAdminCommandHandler
{
activeChar.setIsInvul(false);
text = activeChar.getName() + " is now mortal";
if (Config.DEBUG)
{
_log.fine("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.fine("GM: Gm activated invul 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;
@@ -35,7 +34,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",
@@ -153,10 +151,6 @@ public class AdminKill implements IAdminCommandHandler
target.setIsInvul(true);
}
}
if (Config.DEBUG)
{
_log.fine("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.fine("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.SkillTreesData;
import com.l2jmobius.gameserver.datatables.SkillData;
@@ -472,10 +471,6 @@ public class AdminSkill implements IAdminCommandHandler
player.sendSkillList();
// Admin info.
activeChar.sendMessage("You gave the skill " + name + " to " + player.getName() + ".");
if (Config.DEBUG)
{
_log.fine("[GM]" + activeChar.getName() + " gave skill " + name + " to " + player.getName() + ".");
}
activeChar.sendSkillList();
}
else
@@ -507,10 +502,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.fine("[GM]" + activeChar.getName() + " removed skill " + skillname + " from " + player.getName() + ".");
}
activeChar.sendSkillList();
}
else

View File

@@ -128,10 +128,6 @@ public class AdminTeleport implements IAdminCommandHandler
}
catch (Exception e)
{
if (Config.DEBUG)
{
_log.info("admin_walk: " + e);
}
}
}
else if (command.startsWith("admin_move_to"))
@@ -571,12 +567,6 @@ public class AdminTeleport implements IAdminCommandHandler
spawn.init();
activeChar.sendMessage("Created " + target.getTemplate().getName() + " on " + target.getObjectId() + ".");
if (Config.DEBUG)
{
_log.fine("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

@@ -109,12 +109,6 @@ public class ClanWarehouse implements IBypassHandler
activeChar.sendPacket(ActionFailed.STATIC_PACKET);
activeChar.setActiveWarehouse(activeChar.getClan().getWarehouse());
activeChar.setInventoryBlockingStatus(true);
if (Config.DEBUG)
{
_log.fine("Source: L2WarehouseInstance.java; Player: " + activeChar.getName() + "; Command: showDepositWindowClan; Message: Showing items to deposit.");
}
activeChar.sendPacket(new WareHouseDepositList(activeChar, WareHouseDepositList.CLAN));
return true;
}
@@ -161,11 +155,6 @@ public class ClanWarehouse implements IBypassHandler
{
player.sendPacket(new WareHouseWithdrawalList(player, WareHouseWithdrawalList.CLAN));
}
if (Config.DEBUG)
{
_log.fine("Source: L2WarehouseInstance.java; Player: " + player.getName() + "; Command: showRetrieveWindowClan; Message: Showing stored items.");
}
}
@Override

View File

@@ -125,11 +125,6 @@ public class PrivateWarehouse implements IBypassHandler
{
player.sendPacket(new WareHouseWithdrawalList(player, WareHouseWithdrawalList.PRIVATE));
}
if (Config.DEBUG)
{
_log.fine("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;
@@ -36,8 +35,6 @@ import com.l2jmobius.gameserver.network.serverpackets.CreatureSay;
*/
public final class ChatGeneral implements IChatHandler
{
private static Logger _log = Logger.getLogger(ChatGeneral.class.getName());
private static final ChatType[] CHAT_TYPES =
{
ChatType.GENERAL,
@@ -61,10 +58,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)
@@ -74,10 +67,6 @@ public final class ChatGeneral implements IChatHandler
}
else
{
if (Config.DEBUG)
{
_log.warning("No handler registered for bypass '" + command + "'");
}
vcd_used = false;
}
}

View File

@@ -21,7 +21,6 @@ import java.net.Socket;
import java.util.NoSuchElementException;
import java.util.StringTokenizer;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.data.sql.impl.CharNameTable;
import com.l2jmobius.gameserver.handler.ITelnetHandler;
import com.l2jmobius.gameserver.instancemanager.PunishmentManager;
@@ -275,10 +274,6 @@ public class PlayerHandler implements ITelnetHandler
}
catch (Exception e)
{
if (Config.DEBUG)
{
e.printStackTrace();
}
}
}
else if (command.startsWith("unjail"))
@@ -305,10 +300,6 @@ public class PlayerHandler implements ITelnetHandler
}
catch (Exception e)
{
if (Config.DEBUG)
{
e.printStackTrace();
}
}
}
return false;

View File

@@ -16,7 +16,6 @@
*/
package instances;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.List;
import java.util.logging.Logger;
@@ -98,11 +97,6 @@ public abstract class AbstractInstance extends AbstractNpcAI
{
handleRemoveBuffs(instance);
}
if (Config.DEBUG_INSTANCES)
{
_log.info("Instance " + inst.getName() + " (" + instance.getTemplateId() + ") has been created by player " + player.getName());
}
}
}
@@ -233,11 +227,6 @@ public abstract class AbstractInstance extends AbstractNpcAI
player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.INSTANT_ZONE_S1_S_ENTRY_HAS_BEEN_RESTRICTED_YOU_CAN_CHECK_THE_NEXT_POSSIBLE_ENTRY_TIME_BY_USING_THE_COMMAND_INSTANCEZONE).addString(InstanceManager.getInstance().getInstance(world.getInstanceId()).getName()));
}
}
if (Config.DEBUG_INSTANCES)
{
_log.info("Time restrictions has been set for player in instance ID: " + world.getInstanceId() + " (" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(time) + ")");
}
}
private void handleRemoveBuffs(L2PcInstance player, InstanceWorld world)

View File

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