public YAMLConfig(InputStream configStream, File configFile, int comments, JavaPlugin plugin) {
        this.comments = comments;
        this.manager = new YAMLConfigManager(plugin);

        this.file = configFile;
        try {
            this.config = YamlConfiguration.loadConfiguration(new InputStreamReader(configStream, "UTF-8"));
        } catch (NoSuchMethodError ignored) {
        } catch (UnsupportedEncodingException ignored) {
        }
        if (this.config == null) {
            this.config = YamlConfiguration.loadConfiguration(configStream);
        }
        this.plugin = plugin;
    }