Config to disable World chat.
This commit is contained in:
@ -471,6 +471,7 @@ public final class Config
|
||||
public static int PEACE_ZONE_MODE;
|
||||
public static String DEFAULT_GLOBAL_CHAT;
|
||||
public static String DEFAULT_TRADE_CHAT;
|
||||
public static boolean ENABLE_WORLD_CHAT;
|
||||
public static int MINIMUM_CHAT_LEVEL;
|
||||
public static boolean ALLOW_WAREHOUSE;
|
||||
public static boolean WAREHOUSE_CACHE;
|
||||
@ -1766,6 +1767,7 @@ public final class Config
|
||||
PEACE_ZONE_MODE = General.getInt("PeaceZoneMode", 0);
|
||||
DEFAULT_GLOBAL_CHAT = General.getString("GlobalChat", "ON");
|
||||
DEFAULT_TRADE_CHAT = General.getString("TradeChat", "ON");
|
||||
ENABLE_WORLD_CHAT = General.getBoolean("WorldChatEnabled", false);
|
||||
MINIMUM_CHAT_LEVEL = General.getInt("MinimumChatLevel", 20);
|
||||
ALLOW_WAREHOUSE = General.getBoolean("AllowWarehouse", true);
|
||||
WAREHOUSE_CACHE = General.getBoolean("WarehouseCache", false);
|
||||
|
@ -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 = ?"))
|
||||
|
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user