Removed known command. Also NPC abnormal broadcast fix.

This commit is contained in:
MobiusDev
2018-09-23 18:50:42 +00:00
parent 94887eab04
commit b87d0427a3
48 changed files with 44 additions and 265 deletions

View File

@@ -19,7 +19,6 @@ package com.l2jmobius.gameserver.handler.admincommandhandlers;
import java.util.NoSuchElementException;
import java.util.StringTokenizer;
import com.l2jmobius.Config;
import com.l2jmobius.commons.concurrent.ThreadPool;
import com.l2jmobius.gameserver.datatables.SkillTable;
import com.l2jmobius.gameserver.handler.IAdminCommandHandler;
@@ -46,7 +45,6 @@ public class AdminTest implements IAdminCommandHandler
"admin_skill_test",
"admin_st",
"admin_mp",
"admin_known",
"admin_oly_obs_mode",
"admin_obs_mode"
};
@@ -129,14 +127,6 @@ public class AdminTest implements IAdminCommandHandler
// .dumpPacketHistory();
BuilderUtil.sendSysMessage(activeChar, "command not working");
}
else if (command.equals("admin_known on"))
{
Config.CHECK_KNOWN = true;
}
else if (command.equals("admin_known off"))
{
Config.CHECK_KNOWN = false;
}
else if (command.equals("admin_test"))
{
BuilderUtil.sendSysMessage(activeChar, "Now the server will send a packet that client cannot read correctly");

View File

@@ -16,7 +16,6 @@
*/
package com.l2jmobius.gameserver.model.actor.knownlist;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.ai.L2CharacterAI;
import com.l2jmobius.gameserver.model.L2Object;
import com.l2jmobius.gameserver.model.actor.L2Character;
@@ -147,11 +146,6 @@ public class PcKnownList extends PlayableKnownList
}
else if (object instanceof L2NpcInstance)
{
if (Config.CHECK_KNOWN)
{
active_char.sendMessage("Added NPC: " + ((L2NpcInstance) object).getName());
}
active_char.sendPacket(new NpcInfo((L2NpcInstance) object, active_char));
}
else if (object instanceof L2Summon)
@@ -278,11 +272,6 @@ public class PcKnownList extends PlayableKnownList
active_char.sendPacket(new DeleteObject(object));
}
if (Config.CHECK_KNOWN && (object instanceof L2NpcInstance))
{
active_char.sendMessage("Removed NPC: " + ((L2NpcInstance) object).getName());
}
return true;
}