mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 22:17:17 +00:00
Started SQLite work
This commit is contained in:
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());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user