mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-21 14:55:17 +01:00
Removed debug messages
This commit is contained in:
parent
6f463589a3
commit
ac0bf6916b
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user