I Think Here Is The Problem..
case TRADE:
if (Config.DEFAULT_TRADE_CHAT.equalsIgnoreCase("on")
|| (Config.DEFAULT_TRADE_CHAT.equalsIgnoreCase("gm") && activeChar
.isGM()))
if (!FloodProtector.getInstance().tryPerformAction(
activeChar.getObjectId(),
FloodProtector.PROTECTED_CHAT_TRADE))
{
activeChar
.sendMessage("Action failed. You can not speak so fast sorry!");
return;
}
{
for (L2PcInstance player : L2World.getInstance()
.getAllPlayers())
{
player.sendPacket(cs);
}
} if (Config.DEFAULT_TRADE_CHAT.equalsIgnoreCase("limited"))
{
if (!FloodProtector.getInstance().tryPerformAction(
activeChar.getObjectId(),
FloodProtector.PROTECTED_CHAT_TRADE))
{
activeChar
.sendMessage("Action failed. You can not speak so fast sorry!");
return;
}
int region = MapRegionTable.getInstance().getMapRegion(
activeChar.getX(), activeChar.getY());
for (L2PcInstance player : L2World.getInstance()
.getAllPlayers())
{
if (region == MapRegionTable.getInstance().getMapRegion(
player.getX(), player.getY()))
player.sendPacket(cs);
}
}
break;