Реклама Google — средство выживания форумов :)
activeChar.sendPacket(cs);
if (_text.startsWith("."))
{
StringTokenizer st = new StringTokenizer(_text);
String target = st.nextToken().substring(1);
if (st.hasMoreTokens())
{
String command = st.nextToken();
IVoicedCommandHandler vch = VoicedCommandHandler.getInstance().getVoicedCommandHandler(command);
if (vch != null)
vch.useVoicedCommand(command, activeChar, target);
else
_log.warning("No handler registered for bypass '"+command+"'");
}
}
if (_text.startsWith("/"))
{
StringTokenizer st = new StringTokenizer(_text);
String target = st.nextToken().substring(1);
if (st.hasMoreTokens())
{
String command = st.nextToken();
IVoicedCommandHandler vch = VoicedCommandHandler.getInstance().getVoicedCommandHandler(command);
if (vch != null)
vch.useVoicedCommand(command, activeChar, target);
else
_log.warning("No handler registered for bypass '"+command+"'");
}
}
}
else if (_type == CLAN && activeChar.getClan() != null)
{
activeChar.getClan().broadcastToOnlineMembers(cs);
}
else if (_type == ALLIANCE && activeChar.getClan() != null)
{
activeChar.getClan().broadcastToOnlineAllyMembers(cs);
}
else if (_type == PARTY && activeChar.isInParty())
{
activeChar.getParty().broadcastToPartyMembers(cs);
}
else if (_type == PETITION_PLAYER)
{
for (L2PcInstance gm : L2World.getInstance().getAllGMs())
{
gm.sendPacket(cs);
if(!gm.getMessageRefusal())
{
gm.sendPacket(cs);
}
}
}
else if (_type == HERO_VOICE)
{
if (!activeChar.isHero())
return;
else
{
for (L2PcInstance player : L2World.getInstance().getAllPlayers())
{
if(!BlockList.isBlocked(player, activeChar))
{
player.sendPacket(cs);
}
}
}
}
}
/* (non-Javadoc)
* @see net.sf.l2j.gameserver.clientpackets.ClientBasePacket#getType()
*/
public String getType()
{
return _C__38_SAY2;
}
}