Removed debug messages

This commit is contained in:
Auxilor 2020-10-10 13:14:41 +01:00
parent 6f463589a3
commit ac0bf6916b
2 changed files with 0 additions and 4 deletions

View File

@ -34,20 +34,17 @@ public abstract class UpdatingLang {
public void update() {
try {
config.load(configFile);
Bukkit.getLogger().info("BEFORE: " + config.getKeys(true).toString());
InputStream newIn = EcoEnchantsPlugin.getInstance().getResource("lang.yml");
BufferedReader reader = new BufferedReader(new InputStreamReader(newIn, StandardCharsets.UTF_8));
YamlConfiguration newConfig = new YamlConfiguration();
newConfig.load(reader);
Bukkit.getLogger().info("NEW: " + newConfig.getKeys(true).toString());
newConfig.getKeys(true).forEach((s -> {
if (!config.getKeys(true).contains(s)) {
config.set(s, newConfig.get(s));
}
}));
Bukkit.getLogger().info("AFTER: " + config.getKeys(true).toString());
config.save(configFile);
} catch (IOException | InvalidConfigurationException e) {

View File

@ -108,7 +108,6 @@ public class EnchantmentConfig extends EnchantmentYamlConfig {
config.set("name", ConfigManager.getLang().getString("enchantments." + this.getName() + ".name"));
config.set("description", ConfigManager.getLang().getString("enchantments." + this.getName() + ".description"));
Logger.info("LOADED " + name + ".");
try {
this.config.save(this.configFile);
} catch (IOException e) {