}
for (int i = 0; i < leaderList.size(); i += 2)
{
Player team1Leader = leaderList.get(i).get();
Player team2Leader = leaderList.get(i + 1).get();
GvGInstance r = new GvGInstance();
r.setTeam1(team1Leader.getParty());
r.setTeam2(team2Leader.getParty());
r.init(iz);
r.setReturnLoc(GvG.RETURN_LOC);
for (Player member : team1Leader.getParty().getPartyMembers())
{
Functions.unRide(member);
Functions.unSummonPet(member, true);
member.setTransformation(0);
member.setInstanceReuse(instancedZoneId, System.currentTimeMillis());
member.dispelBuffs();
member.teleToLocation(Location.findPointToStay(GvG.TEAM1_LOC, 0, 150, r.getGeoIndex()), r);
}
for (Player member : team2Leader.getParty().getPartyMembers())
{
Functions.unRide(member);
Functions.unSummonPet(member, true);
member.setTransformation(0);
member.setInstanceReuse(instancedZoneId, System.currentTimeMillis());
member.dispelBuffs();
member.teleToLocation(Location.findPointToStay(GvG.TEAM2_LOC, 0, 150, r.getGeoIndex()), r);
}
r.start();
}
leaderList.clear();
_log.info("GvG: Event started successfuly.");
}