small change to BukkitConfig

This commit is contained in:
Luck 2016-10-08 09:05:48 +01:00
parent 9d166041ab
commit 687804de2c
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -24,11 +24,9 @@ package me.lucko.luckperms;
import me.lucko.luckperms.config.AbstractConfiguration; import me.lucko.luckperms.config.AbstractConfiguration;
import org.bukkit.configuration.ConfigurationSection; import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.configuration.InvalidConfigurationException;
import org.bukkit.configuration.file.YamlConfiguration; import org.bukkit.configuration.file.YamlConfiguration;
import java.io.File; import java.io.File;
import java.io.IOException;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
@ -49,13 +47,7 @@ class BukkitConfig extends AbstractConfiguration<LPBukkitPlugin> {
getPlugin().saveResource("config.yml", false); getPlugin().saveResource("config.yml", false);
} }
configuration = new YamlConfiguration(); configuration = YamlConfiguration.loadConfiguration(configFile);
try {
configuration.load(configFile);
} catch (InvalidConfigurationException | IOException e) {
e.printStackTrace();
}
} }
@Override @Override