mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Updated SQL handling
This commit is contained in:
1 parent
9d902a8453
commit
b95629a986
8 files changed
+454
-39
No files matched your search
@@ -14,6 +14,11 @@ public final class Main extends JavaPlugin {
|
||||
}
|
||||
public static Settings settings;
|
||||
|
||||
private static void setupBungeeChannels(Main plugin) {
|
||||
plugin.getServer().getMessenger().registerOutgoingPluginChannel(plugin, "BungeeCord");
|
||||
plugin.getServer().getMessenger().registerIncomingPluginChannel(plugin, "BungeeCord", new pluginMessageHandler());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
// Plugin startup logic
|
||||
@@ -27,6 +32,11 @@ public final class Main extends JavaPlugin {
|
||||
|
||||
// Set up data storage
|
||||
dataManager.setupStorage(settings.getStorageType());
|
||||
|
||||
// Set up bungee channels if bungee mode is enabled
|
||||
if (settings.doBungee()) {
|
||||
setupBungeeChannels(this);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user