Removed known command. Also NPC abnormal broadcast fix.
This commit is contained in:
@@ -558,7 +558,6 @@ INSERT IGNORE INTO `admin_command_access_rights` VALUES
|
||||
('admin_skill_test','3'),
|
||||
('admin_st','3'),
|
||||
('admin_mp','3'),
|
||||
('admin_known','3'),
|
||||
|
||||
-- Section: TownWar
|
||||
('admin_townwar_start','3'),
|
||||
|
@@ -135,7 +135,6 @@ public final class Config
|
||||
public static boolean GM_DEBUG_HTML_PATHS;
|
||||
public static boolean USE_SUPER_HASTE_AS_GM_SPEED;
|
||||
|
||||
public static boolean CHECK_KNOWN;
|
||||
public static String DEFAULT_GLOBAL_CHAT;
|
||||
public static String DEFAULT_TRADE_CHAT;
|
||||
public static boolean TRADE_CHAT_WITH_PVP;
|
||||
@@ -1054,7 +1053,7 @@ public final class Config
|
||||
public static float ALT_DAGGER_DMG_VS_ROBE;
|
||||
public static float ALT_DAGGER_DMG_VS_LIGHT;
|
||||
public static boolean ALLOW_RAID_LETHAL;
|
||||
|
||||
|
||||
public static boolean ALLOW_LETHAL_PROTECTION_MOBS;
|
||||
public static String LETHAL_PROTECTED_MOBS;
|
||||
public static List<Integer> LIST_LETHAL_PROTECTED_MOBS = new ArrayList<>();
|
||||
@@ -1341,7 +1340,6 @@ public final class Config
|
||||
|
||||
MINIMUM_UPDATE_DISTANCE = Integer.parseInt(optionsSettings.getProperty("MaximumUpdateDistance", "50"));
|
||||
MINIMUN_UPDATE_TIME = Integer.parseInt(optionsSettings.getProperty("MinimumUpdateTime", "500"));
|
||||
CHECK_KNOWN = Boolean.valueOf(optionsSettings.getProperty("CheckKnownList", "false"));
|
||||
KNOWNLIST_FORGET_DELAY = Integer.parseInt(optionsSettings.getProperty("KnownListForgetDelay", "10000"));
|
||||
|
||||
HIGH_RATE_SERVER_DROPS = Boolean.valueOf(optionsSettings.getProperty("HighRateServerDrops", "false"));
|
||||
|
@@ -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");
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user