Examples of PetitionMainGroup


Examples of lineage2.gameserver.model.petition.PetitionMainGroup

    Player player = getClient().getActiveChar();
    if ((player == null) || !Config.EX_NEW_PETITION_SYSTEM)
    {
      return;
    }
    PetitionMainGroup group = PetitionGroupHolder.getInstance().getPetitionGroup(_petitionGroupId);
    if (group == null)
    {
      return;
    }
    player.setPetitionGroup(group);
View Full Code Here

Examples of lineage2.gameserver.model.petition.PetitionMainGroup

  protected void readData(Element rootElement) throws Exception
  {
    for (Iterator<Element> iterator = rootElement.elementIterator(); iterator.hasNext();)
    {
      Element groupElement = iterator.next();
      PetitionMainGroup group = new PetitionMainGroup(Integer.parseInt(groupElement.attributeValue("id")));
      getHolder().addPetitionGroup(group);
      for (Iterator<Element> subIterator = groupElement.elementIterator(); subIterator.hasNext();)
      {
        Element subElement = subIterator.next();
        if ("name".equals(subElement.getName()))
        {
          group.setName(Language.valueOf(subElement.attributeValue("lang")), subElement.getText());
        }
        else if ("description".equals(subElement.getName()))
        {
          group.setDescription(Language.valueOf(subElement.attributeValue("lang")), subElement.getText());
        }
        else if ("sub_group".equals(subElement.getName()))
        {
          PetitionSubGroup subGroup = new PetitionSubGroup(Integer.parseInt(subElement.attributeValue("id")), subElement.attributeValue("handler"));
          group.addSubGroup(subGroup);
          for (Iterator<Element> sub2Iterator = subElement.elementIterator(); sub2Iterator.hasNext();)
          {
            Element sub2Element = sub2Iterator.next();
            if ("name".equals(sub2Element.getName()))
            {
View Full Code Here

Examples of lineage2.gameserver.model.petition.PetitionMainGroup

    {
      return;
    }
    if (Config.EX_NEW_PETITION_SYSTEM)
    {
      PetitionMainGroup group = player.getPetitionGroup();
      if (group == null)
      {
        return;
      }
      PetitionSubGroup subGroup = group.getSubGroup(_type);
      if (subGroup == null)
      {
        return;
      }
      subGroup.getHandler().handle(player, _type, _content);
View Full Code Here

Examples of lineage2.gameserver.model.petition.PetitionMainGroup

    Player player = getClient().getActiveChar();
    if ((player == null) || !Config.EX_NEW_PETITION_SYSTEM)
    {
      return;
    }
    PetitionMainGroup group = player.getPetitionGroup();
    if (group == null)
    {
      return;
    }
    PetitionSubGroup subGroup = group.getSubGroup(_subId);
    if (subGroup == null)
    {
      return;
    }
    player.sendPacket(new ExResponseShowContents(subGroup.getDescription(player.getLanguage())));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.