Package com.l2jfrozen.gameserver.model

Examples of com.l2jfrozen.gameserver.model.PartyMatchRoomList$SingletonHolder


      }
      player.joinParty(requestor.getParty());
     
      if (requestor.isInPartyMatchRoom() && player.isInPartyMatchRoom())
      {
        final PartyMatchRoomList list = PartyMatchRoomList.getInstance();
        if (list != null && (list.getPlayerRoomId(requestor) == list.getPlayerRoomId(player)))
        {
          final PartyMatchRoom room = list.getPlayerRoom(requestor);
          if (room != null)
          {
            final ExManagePartyRoomMember packet = new ExManagePartyRoomMember(player, room, 1);
            for (L2PcInstance member : room.getPartyMembers())
            {
              if (member != null)
                member.sendPacket(packet);
            }
          }
        }
      }
      else if (requestor.isInPartyMatchRoom() && !player.isInPartyMatchRoom())
      {
        final PartyMatchRoomList list = PartyMatchRoomList.getInstance();
        if (list != null)
        {
          final PartyMatchRoom room = list.getPlayerRoom(requestor);
          if (room != null)
          {
            room.addMember(player);
            ExManagePartyRoomMember packet = new ExManagePartyRoomMember(player, room, 1);
            for(L2PcInstance member : room.getPartyMembers())
View Full Code Here


    }
   
    if (_activeChar.isInPartyMatchRoom())
    {
      // If Player is in Room show him room, not list
      PartyMatchRoomList _list = PartyMatchRoomList.getInstance();
      if (_list == null)
        return;
     
      PartyMatchRoom _room = _list.getPlayerRoom(_activeChar);
      if (_room == null)
        return;
     
      _activeChar.sendPacket(new PartyMatchDetail(_activeChar, _room));
      _activeChar.sendPacket(new ExPartyRoomMember(_activeChar, _room, 2));
View Full Code Here

TOP

Related Classes of com.l2jfrozen.gameserver.model.PartyMatchRoomList$SingletonHolder

Copyright © 2018 www.massapicom. 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.