private static void readFile(PluginDescriptionFile desc, Setting config[]) { File directory = new File(MinecartManiaCore.dataDirectory); if (!directory.exists()) directory.mkdir(); String input = MinecartManiaCore.dataDirectory + File.separator; input += StringUtils.removeWhitespace(desc.getName()); input += "Settings.txt"; File options = new File(input); if (!options.exists() || invalidFile(options, config)) { WriteFile(options, desc, config); } /*else if (invalidFile(options)) { updateFile(options); }*/ ReadFile(options, desc, config); }
@Override public String getName() { return StringUtils.removeWhitespace(setting.toLowerCase()) + "sign"; }