mirror of
https://github.com/xSquishyLiam/mc-GeyserModelEngine-plugin.git
synced 2025-12-25 17:59:16 +00:00
added auto file create (may of forgotten to add it)
TODO -Need to move the other schedule to a better system
This commit is contained in:
@@ -18,6 +18,12 @@ public class ConfigManager {
|
||||
}
|
||||
|
||||
public void load() {
|
||||
if (!plugin.getDataFolder().exists()) {
|
||||
plugin.getDataFolder().mkdir();
|
||||
plugin.saveResource("config.yml", false);
|
||||
plugin.saveResource("Lang/messages.yml", false);
|
||||
}
|
||||
|
||||
this.config = YamlConfiguration.loadConfiguration(new File(plugin.getDataFolder(), "config.yml"));
|
||||
this.lang = YamlConfiguration.loadConfiguration(new File(plugin.getDataFolder(), "Lang/messages.yml"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user