mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +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
@@ -1,19 +1,37 @@
|
||||
package me.william278.huskhomes2;
|
||||
|
||||
import me.william278.huskhomes2.Objects.Settings;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
public final class Main extends JavaPlugin {
|
||||
|
||||
public static final String server = "server";
|
||||
private static Main instance;
|
||||
public static Main getInstance() {
|
||||
return instance;
|
||||
}
|
||||
private void setInstance(Main instance) {
|
||||
Main.instance = instance;
|
||||
}
|
||||
public static Settings settings;
|
||||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
// Plugin startup logic
|
||||
getLogger().info("Enabling HuskHomes version " + this.getDescription().getVersion());
|
||||
|
||||
// Set instance for easy cross-class referencing
|
||||
setInstance(this);
|
||||
|
||||
// Load the config
|
||||
configManager.loadConfig();
|
||||
|
||||
// Set up data storage
|
||||
dataManager.setupStorage(settings.getStorageType());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDisable() {
|
||||
// Plugin shutdown logic
|
||||
getLogger().info("Disabled HuskHomes version " + this.getDescription().getVersion());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user