//If it is a pvp world, make sure that the two teams have equal number of players.
World pvpWorld = client.getServer().getActivePvPWorld(worldName);
if (pvpWorld != null) {//The world is a pvp world.
PvPWorldMap map = client.getServer().getPvPWorldMap(pvpWorld.getID());
System.out.println("Original PvP Map:");
map.printObject();
if (map != null) {
int team0PlayerNum = map.getTeam0().size();
int team1PlayerNum = map.getTeam1().size();
if (team0PlayerNum > team1PlayerNum) {