for(int i = 0; i< Configmax.players; i++) { if(Playerhandler....) { for(int i=0; i < browserwindows; i++) { try{ .... ..... } } }