protected void setPlayerAtRandomLocation(Player player) {
        String pname = player.getName();
        DodgeballPlayer p = mm.getMinigamePlayer(pname);
        DodgeballTeam t = p.getTeam();
        CubeSerializable a = t == TEAM_1 ? TEAM_1_AREA : TEAM_2_AREA;
        LocationSerializable maxl = a.maxPoint;
        LocationSerializable minl = a.minPoint;
        Location l = player.getLocation();
        l.setX(p.getSpawnX());
        l.setY(minl.y + 2);
        l.setZ(rand.nextInt((int)(maxl.z - minl.z - 2)) + minl.z + 1);
        player.teleport(l);
    }