Started SQLite work

This commit is contained in:
[email protected] authored and William278 committed 2020-12-07 22:56:33 +00:00
1 parent d3a787be67
commit 559e38fc4b
21 files changed
+788 -65

No files matched your search

@@ -0,0 +1,25 @@
package me.william278.huskhomes2;
import me.william278.huskhomes2.Objects.Settings;
public class configManager {
private static final Main plugin = Main.getInstance();
// (Re-)Load the config file
public static void loadConfig() {
plugin.getConfig().options().header(
" ------------------------------ \n" +
"| HuskHomes Config |\n" +
"| Developed by William278 |\n" +
" ------------------------------ \n" +
"Configuration guide: https://github.com/WiIIiam278/HuskHomesDocs/wiki/Config-File/ \n" +
"To quickly setup the plugin:\n" +
"1. Fill in the details of your mySQL Database below\n" +
"2. (Optional) Change the appropriate details in the configuration\n" +
"3. Restart the server");
plugin.getConfig().options().copyHeader(true).copyDefaults(true);
plugin.saveConfig();
Main.settings = new Settings(plugin.getConfig());
}
}