CommandChannel channel = party != null ? party.getCommandChannel() : null;
if ((channel != null) && (channel.getChannelLeader() == player))
{
if (channel.getMatchingRoom() == null)
{
CCMatchingRoom room = new CCMatchingRoom(player, 1, player.getLevel(), 50, party.getLootDistribution(), player.getName());
channel.setMatchingRoom(room);
}
}
else if ((channel != null) && !channel.getParties().contains(party))
{