mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-30 22:53:27 +01:00
small change to BukkitConfig
This commit is contained in:
parent
9d166041ab
commit
687804de2c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user