public void doConfig(boolean print) {
        file = (YamlConfiguration)plugin.getConfig();
        if (new File(plugin.getDataFolder(), "config.yml").exists()) {
            if (print) Main.log.info("[ClassSign] Configuration file loaded!");
        } else {
            file.options().copyDefaults(true);
            if (print) Main.log.info("[ClassSign] Configuration file created with default values!");
        }
        
        //Get configs
        emptyInventory = file.getBoolean("emptyInventory", false);
        overwriteArmor = file.getBoolean("overwriteArmor", true);
        emptyWholeInventory = file.getBoolean("emptyWholeInventory", false);
        
        Iterator<String> i = file.getConfigurationSection("classes").getValues(false).keySet().iterator();
        classes = new ArrayList<String>();
        
        while (i.hasNext()) {
            classes.add(i.next());
        }
        numOfClasses = classes.size();
        
        plugin.saveConfig();
    }