Config to disable World chat.

This commit is contained in:
MobiusDev
2017-05-01 11:32:20 +00:00
parent ab939796cd
commit 6892014a09
18 changed files with 72 additions and 6 deletions

View File

@@ -188,6 +188,11 @@ public class DailyTaskManager extends AbstractEventManager<AbstractEvent<?>>
private void resetWorldChatPoints()
{
if (!Config.ENABLE_WORLD_CHAT)
{
return;
}
// Update data for offline players.
try (Connection con = DatabaseFactory.getInstance().getConnection();
PreparedStatement ps = con.prepareStatement("UPDATE character_variables SET val = ? WHERE var = ?"))

View File

@@ -641,7 +641,10 @@ public class EnterWorld implements IClientIncomingPacket
}
activeChar.sendPacket(new ExAcquireAPSkillList(activeChar));
activeChar.sendPacket(new ExWorldChatCnt(activeChar));
if (Config.ENABLE_WORLD_CHAT)
{
activeChar.sendPacket(new ExWorldChatCnt(activeChar));
}
activeChar.sendPacket(new ExOneDayReceiveRewardList(activeChar));
activeChar.sendPacket(ExConnectedTimeAndGettableReward.STATIC_PACKET);