Beispiel #1
0
 public int getPlayerRoomId(L2PcInstance player) {
   for (PartyMatchRoom _room : _rooms.values()) {
     for (L2PcInstance member : _room.getPartyMembers()) {
       if (member.equals(player)) {
         return _room.getId();
       }
     }
   }
   return -1;
 }
Beispiel #2
0
 public PartyMatchRoom getPlayerRoom(L2PcInstance player) {
   for (PartyMatchRoom _room : _rooms.values()) {
     for (L2PcInstance member : _room.getPartyMembers()) {
       if (member.equals(player)) {
         return _room;
       }
     }
   }
   return null;
 }