public int[] getRooms(String name, int low, int high, String world)
    {
        freeRoom = "";
        
        // i[0] ist die anzahl aller zimmer
        // i[1] ist die anzahl belegter zimmer
        // i[2] ist die anzahl freier zimmer
        int i[] = new int[3];
        
        // HotelCount is just checking the rent.yml file of SimpleRegionMarket
        File ag = new File(HotelCount.agents);
        YamlConfiguration confighandle = YamlConfiguration.loadConfiguration(ag);
        
        ConfigurationSection path = confighandle.getConfigurationSection(world);
        
        for(Iterator<String> iterator1 = path.getKeys(false).iterator(); iterator1.hasNext();) {
            String region = iterator1.next();
            
            if(region.replaceAll("\\d*$", "").equalsIgnoreCase(name)) {
                if((low  <= Integer.parseInt(region.replaceAll("[^\\d]", "")) &&
                	high >= Integer.parseInt(region.replaceAll("[^\\d]", ""))) ||
                    high <= 0) {
                	
                	path = confighandle.getConfigurationSection(world).getConfigurationSection(region);
                    i[ALL]++; // it is actually a hotel room, so increase the counter
                    
                    if(!path.isConfigurationSection("signs")) {
                    	i[TAKEN]++; // if there is no sign it is considered taken
                    }
                    else if(path.getBoolean("taken") == true) {
                    	i[TAKEN]++;
                    }
                    else {
                    	i[FREE]++;
                        if(i[FREE] == 1)
                        	freeRoom = region;
                        else if(Integer.parseInt(region.replaceAll("[^0-9]", "")) < Integer.parseInt(freeRoom.replaceAll("[^0-9]", "")))
                        	freeRoom = region;
                    }
                }
            }
    }
        return i;
    }