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:
TheLividaProject
2025-05-28 01:14:30 +01:00
parent 7b45816595
commit ff1133a4d5
12 changed files with 6 additions and 0 deletions

View File

@@ -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"));
}