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