Archive eaglerproxy (server, 1.8.8, clean)

This commit is contained in:
2026-11-27 22:15:37 -06:00
parent 0f05955131
commit b4485b1e38
66 changed files with 8178 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
import * as dotenv from "dotenv";
import process from "process";
import { Proxy } from "./proxy/Proxy.js";
import { config } from "./config.js";
dotenv.config();
import { Logger } from "./logger.js";
import { PROXY_BRANDING } from "./meta.js";
import { PluginManager } from "./proxy/pluginLoader/PluginManager.js";
import { dirname, join } from "path";
import { fileURLToPath } from "url";
import { ImageEditor } from "./proxy/skins/ImageEditor.js";
const logger = new Logger("Launcher");
let proxy: Proxy;
global.CONFIG = config;
config.adapter.useNatives = config.adapter.useNatives ?? true;
logger.info("Loading libraries...");
await ImageEditor.loadLibraries(config.adapter.useNatives);
logger.info("Loading plugins...");
const pluginManager = new PluginManager(join(dirname(fileURLToPath(import.meta.url)), "plugins"));
global.PLUGIN_MANAGER = pluginManager;
await pluginManager.loadPlugins();
proxy = new Proxy(config.adapter, pluginManager);
pluginManager.proxy = proxy;
logger.info(`Launching ${PROXY_BRANDING}...`);
await proxy.init();
global.PROXY = proxy;