diff --git a/src/main/java/us/camin/regions/Plugin.java b/src/main/java/us/camin/regions/Plugin.java index a47c45a..04f6ad0 100644 --- a/src/main/java/us/camin/regions/Plugin.java +++ b/src/main/java/us/camin/regions/Plugin.java @@ -111,7 +111,11 @@ public class Plugin extends JavaPlugin { this.getDataFolder().mkdir(); File regionConfigFile = new File(this.getDataFolder(), "regions.yml"); Configuration regionConf = YamlConfiguration.loadConfiguration(regionConfigFile); - m_regions.loadRegions(regionConf); + try { + m_regions.loadRegions(regionConf); + } catch (Exception e) { + log.log(Level.SEVERE, "Could not load regions config! You risk overwriting and losing data!", e); + } } public void saveRegions() {