{
          activeChar.getParty().broadCast(cs);
        }
        break;
      case PARTY_ROOM:
        MatchingRoom r = activeChar.getMatchingRoom();
        if ((r != null) && (r.getType() == MatchingRoom.PARTY_MATCHING))
        {
          r.broadCast(cs);
        }
        break;
      case COMMANDCHANNEL_ALL:
        if (!activeChar.isInParty() || !activeChar.getParty().isInCommandChannel())
        {
          activeChar.sendPacket(Msg.YOU_DO_NOT_HAVE_AUTHORITY_TO_USE_THE_COMMAND_CHANNEL);
          return;
        }
        if (activeChar.getParty().getCommandChannel().getChannelLeader() == activeChar)
        {
          activeChar.getParty().getCommandChannel().broadCast(cs);
        }
        else
        {
          activeChar.sendPacket(Msg.ONLY_CHANNEL_OPENER_CAN_GIVE_ALL_COMMAND);
        }
        break;
      case COMMANDCHANNEL_COMMANDER:
        if (!activeChar.isInParty() || !activeChar.getParty().isInCommandChannel())
        {
          activeChar.sendPacket(Msg.YOU_DO_NOT_HAVE_AUTHORITY_TO_USE_THE_COMMAND_CHANNEL);
          return;
        }
        if (activeChar.getParty().isLeader(activeChar))
        {
          activeChar.getParty().getCommandChannel().broadcastToChannelPartyLeaders(cs);
        }
        else
        {
          activeChar.sendPacket(Msg.ONLY_A_PARTY_LEADER_CAN_ACCESS_THE_COMMAND_CHANNEL);
        }
        break;
      case HERO_VOICE:
        boolean PremiumHeroChat = false;
        if (Config.PREMIUM_HEROCHAT && (activeChar.getNetConnection().getBonus() > 1))
        {
          long endtime = activeChar.getNetConnection().getBonusExpire();
          if (endtime >= 0)
          {
            PremiumHeroChat = true;
          }
        }
        if (activeChar.isHero() || activeChar.getPlayerAccess().CanAnnounce || PremiumHeroChat)
        {
          if (!activeChar.getPlayerAccess().CanAnnounce)
          {
            if (!activeChar.antiFlood.canHero(_text))
            {
              activeChar.sendMessage("Hero chat is allowed once per 10 seconds.");
              return;
            }
          }
          for (Player player : GameObjectsStorage.getAllPlayersForIterate())
          {
            if (!player.isInBlockList(activeChar) && !player.isBlockAll())
            {
              player.sendPacket(cs);
            }
          }
        }
        break;
      case PETITION_PLAYER:
      case PETITION_GM:
        if (!PetitionManager.getInstance().isPlayerInConsultation(activeChar))
        {
          activeChar.sendPacket(new SystemMessage(SystemMessage.YOU_ARE_CURRENTLY_NOT_IN_A_PETITION_CHAT));
          return;
        }
        PetitionManager.getInstance().sendActivePetitionMessage(activeChar, _text);
        break;
      case BATTLEFIELD:
        if (activeChar.getBattlefieldChatId() == 0)
        {
          return;
        }
        for (Player player : GameObjectsStorage.getAllPlayersForIterate())
        {
          if (!player.isInBlockList(activeChar) && !player.isBlockAll() && (player.getBattlefieldChatId() == activeChar.getBattlefieldChatId()))
          {
            player.sendPacket(cs);
          }
        }
        break;
      case MPCC_ROOM:
        MatchingRoom r2 = activeChar.getMatchingRoom();
        if ((r2 != null) && (r2.getType() == MatchingRoom.CC_MATCHING))
        {
          r2.broadCast(cs);
        }
        break;
      default:
        _log.warn("Character " + activeChar.getName() + " used unknown chat type: " + _type.ordinal() + ".");
    }